Topic "WinSCP convert files automaticly from UNIX 2 DOS"

Author Message
Michael

Guest


Hi,
Sorry for my very bad english, im a german Wink

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

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
Advertisements
Michael

Guest


hi,

I forgot to say, I used the ftp protocol.
It was already late, last night Wink

best regards,
Michael
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
Thanks for your post. This issue has been added to tracker.
_________________
Martin Prikryl
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
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.
_________________
Martin Prikryl
geoj

Guest


prikryl wrote:
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.


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 out put 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...
guest

Guest


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.

Michael wrote:
Hi,
Sorry for my very bad english, im a german Wink

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

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
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