Topic "Wrong line separator"

Author Message
Tomas

Guest


I added into WinSCP this external editor "C:\Program Files\Java\jre1.5.0_06\bin\javaw.exe" -jar "C:\Program Files\jEdit\jedit.jar" !.!
In jEdit I set Default line separator Unix \n.
But when now I edit file by external editor (F4) on remote unix server, WinSCP copies file to my computer, opens jEdit, but line separator DOS/Windows (\r\n).
Is this setting WinSCP or jEdit? I have to end lines \n and this is for me realy big problem. Help, please.
Thank you,
Tomas
Guest




Tomas wrote:
I added into WinSCP this external editor "C:\Program Files\Java\jre1.5.0_06\bin\javaw.exe" -jar "C:\Program Files\jEdit\jedit.jar" !.!
In jEdit I set Default line separator Unix \n.
But when now I edit file by external editor (F4) on remote unix server, WinSCP copies file to my computer, opens jEdit, but line separator DOS/Windows (\r\n).
Is this setting WinSCP or jEdit? I have to end lines \n and this is for me realy big problem. Help, please.
Thank you,
Tomas


Now, I set Transfer mode Binary no Default and downloaded .php scripts have \n line separator. So, it looks, it works fine. But I don't know why it works wrong with Default settings...

Tomas
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Quote:
Now, I set Transfer mode Binary no Default and downloaded .php scripts have \n line separator. So, it looks, it works fine. But I don't know why it works wrong with Default settings...

Because with the default settings, .js files are transferred in Ascii mode.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License