Topic "Editor in 3.1.7 changes files from unix format to dos format"

Author Message
thedobc

Guest


Editor in 3.1.7 changes edited files from unix LF's to dos CR/LF.

After editing files you have to run dos2unix on them
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Only if you configure it to do so.
_________________
Martin Prikryl
thedobc

Guest


prikryl wrote:
Only if you configure it to do so.

Sorry. I meant 4.1.7
I can't find where this is configured. I looked at every option I can see.

Never mind. I see in the docs;


Quote:
The internal editor supports only Windows-format text files.


So I guess I will need to configure an external editor. But I don't remember having this problem until recently. I have been using WinSCP since the early 3.xx versions.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You may have changed default transfer mode in WinSCP.
_________________
Martin Prikryl
dandv

Guest


I'm encountering the same bug in 4.1.8. The internal editor will save the newlines in a file as CRLFs, no matter what. This does not involve any transfers. Simply edit a LF-separated file with the built-in editor, then save it. Notice that the linbreaks have been converted to CR/LF.

It does not matter, but I had the end-of-line characters set to "LF" in my Server Environment preferences.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dandv wrote:
I'm encountering the same bug in 4.1.8. The internal editor will save the newlines in a file as CRLFs, no matter what. This does not involve any transfers. Simply edit a LF-separated file with the built-in editor, then save it. Notice that the linbreaks have been converted to CR/LF.

It does not matter, but I had the end-of-line characters set to "LF" in my Server Environment preferences.

What protocol?
_________________
Martin Prikryl
dandv

Guest


The server protocol is SFTP with "Allow SCP fallback", but no transfer is ever taking place.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dandv wrote:
The server protocol is SFTP with "Allow SCP fallback", but no transfer is ever taking place.

Are you editing local files or what?
_________________
Martin Prikryl
dandv

Guest


prikryl wrote:
Are you editing local files or what?


Yes, for example before transferring them.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dandv wrote:
prikryl wrote:
Are you editing local files or what?


Yes, for example before transferring them.

Would be worth mentioning that initialy.
Well you are editing file on Windows, so WinSCP uses CRLF.
_________________
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