Line Ending Not Preserved (CRLF)

Advertisement

LCSIInc
Joined:
Posts:
3
Location:
Seattle

Line Ending Not Preserved (CRLF)

I recently upgraded to version 6.6 beta. Since then the line ending is changing from CRLF on my end to LF on the other end. I made no setting changes when upgrading. The transfer mode is still set to binary. I did notice that the server environment end-of-line characters setting was LF so I changed it to CRLF. (I don't know to what this parameter was set before the upgrade.) This did not have any effect.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,797
Location:
Prague, Czechia

Re: Line Ending Not Preserved (CRLF)

Thanks for your report. When exactly do the line ending change? When uploading? When saving a file in editor? Internal or external editor? Please provide step-by-step instructions to reproducing the problem.

Reply with quote

Guest

Prior to the problem occurrance I was uploading a file to a host site via the following script:
# Connect to sftp server using private and public keys
open [host address] -privatekey="C:\Applications\Production\sFTPKey\ALIProPrivKey3.ppk"
# Force binary mode transfer
#option transfer binary
# Force text mode transfer
#option transfer text
# Set confirmation prompts off
option confirm off
# Upload file to the remote directory
put "C:\Applications\Production\PSALI\UploadFiles\406_7734_C.dat"
# Close and disconnect
Close
Exit

This script has worked fine for close to 7 years. After the upgrade, this stopped performing. We played around with the WinSCP user interface settings but that did nothing to solve the problem. We then took a look at the script above and removed the # from the explicit command "option transfer binary". This solved the problem.

As I consider things, I'm not sure why things worked correctly in the past. Maybe that was the bug?

Thank you--

--Dean Arnold

Reply with quote

Guest

Anonymous wrote:

Prior to the problem occurrance I was uploading a file to a host site via the following script:
# Connect to sftp server using private and public keys
open [host address] -privatekey="C:\Applications\Production\sFTPKey\ALIProPrivKey3.ppk"
# Force binary mode transfer
#option transfer binary
# Force text mode transfer
#option transfer text
# Set confirmation prompts off
option confirm off
# Upload file to the remote directory
put "C:\Applications\Production\PSALI\UploadFiles\406_7734_C.dat"
# Close and disconnect
Close
Exit

This script has worked fine for close to 7 years. After the upgrade, this stopped performing. We played around with the WinSCP user interface settings but that did nothing to solve the problem. We then took a look at the script above and removed the # from the explicit command "option transfer binary". This solved the problem.

As I consider things, I'm not sure why things worked correctly in the past. Maybe that was the bug?

Thank you--

--Dean Arnold

Note: the problem did not occur using the user interface (editor?). We could drag and drop files with no change in the end of line characters.

Reply with quote

Advertisement

You can post new topics in this forum