Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Working on Windows XP Notepad++ with Windows line endings.

When copying and pasting multiple lines into Putty window (connected to Ubuntu machine), it sends weird control characters.

How to convert the pasted text to Unix newlines? What setting should I have for emulation mode?

share|improve this question

Notepad++ can convert line endings: enter image description here

share|improve this answer
A good idea, but it didn't work. Still sending weird control characters. – B Seven Mar 13 '12 at 22:04
I'd say that the problem isn't EOL characters, then. – Andrew Lambert Mar 14 '12 at 2:18
Yes, you are right. I figured out that it's the tabs at the beginning of the lines (from Ruby). Is there a way to replace the tabs with spaces in Putty? I don't want to change the files... – B Seven Mar 15 '12 at 19:10
Not that I'm aware of, though I could easily be wrong. – Andrew Lambert Mar 15 '12 at 20:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .