WinSCP convert files automaticly from UNIX 2 DOS

Advertisement

Michael
Guest

WinSCP convert files automaticly from UNIX 2 DOS

Hi,
Sorry for my very bad english, i'm a german ;)

I like WinSCP but, WinSCP convert my files automaticaly from UNIX Format
(Source WinXP) into DOS Format (on Destination "dbox" linux).
Scripts in Dos Format don't run on linux :(
I looked for 3hours now to grant for a solution and found unfortunately nothing, only SmartFTP helped :(

WinSCP V4.10 Build 375
Server Environment is set to UNIX (LF/AUTO)

I surveyed something or am there an error in it?

best regards,
Michael

Reply with quote

Advertisement

Rainer
Guest

hi,

I have the same problem, the files which I transfer (up- and download) become always into DOS(CR/LF) converted. The original file is in the UNIX(LF) format. My home computer is WinXP Pro and the server besides I connects is a Linux Web server.

Why the "End-Of-Line characters" are changed? Why one leaves those not like that as it is.

Or it would not be better, when i can set the Parameter DOS(CR/LF) - Unix(LF) - No change (leave it in the original was entitled).

cu Rainer

Reply with quote

martin
Site Admin
martin avatar

Rainer wrote:

Why the "End-Of-Line characters" are changed? Why one leaves those not like that as it is.
Because FTP protocol specification requires it.

Reply with quote

Advertisement

geoj
Guest

this can make internal server errors (500) in linux servers

martin wrote:

Because FTP protocol specification requires it.
this can make installations get internal server errors (500). Some systems like Drupal www.drupal.org requires unix(LF) to function properly. You can at least make a default selection on preferences with any warning about anything. The final output in every transfer could be
a selection per session between:
1) Leave as original
2) Convert all to Unix
3) Convert all to DOS (your default)
Is that right? If yes, please revise...

Reply with quote

guest
Guest

Re: WinSCP convert files automaticly from UNIX 2 DOS

The solution to this is to change the mode to binary in the winscp preferences. Go to options->preferences and then change the transfer mode to binary. If you do that, the newlines won't be changed.

This thread may be old, but it is the #1 search result in Bing for "winscp newline unix to windows conversion" so hopefully this solution reaches additional people who need it.

Reply with quote

Advertisement

You can post new topics in this forum