Differences

This shows you the differences between the selected revisions of the page.

2020-11-04 2022-11-03
Restored revision 1569845402. Undoing revision 1604497154. (martin) (hidden) debugging anchor (martin)
Line 26: Line 26:
  * Pure-FTPd FTP server: When downloading a file with Windows line-endings (CR+LF) in a text/%%ASCII%% mode, the server replaces LF with CR+LF, resulting in an incorrect CR+CR+LF. When opening such file in an Internal editor of WinSCP, the editor interprets the sequence as two line endings (CR and CR+LF) resulting in a blank line after each and every content line. When the file is saved, the internal editor saves two Windows line endings CR+LF and CR+LF. On upload they get converted to two LF's. A workaround is to use an external editor and make sure WinSCP [[ui_editor_preferences#external|does not force text mode for edited files]].   * Pure-FTPd FTP server: When downloading a file with Windows line-endings (CR+LF) in a text/%%ASCII%% mode, the server replaces LF with CR+LF, resulting in an incorrect CR+CR+LF. When opening such file in an Internal editor of WinSCP, the editor interprets the sequence as two line endings (CR and CR+LF) resulting in a blank line after each and every content line. When the file is saved, the internal editor saves two Windows line endings CR+LF and CR+LF. On upload they get converted to two LF's. A workaround is to use an external editor and make sure WinSCP [[ui_editor_preferences#external|does not force text mode for edited files]].
-===== Debugging Text File Conversion =====+===== [[debugging]] Debugging Text File Conversion =====
If enabling (or disabling) text/ASCII transfer mode does not help with the problem and your transferred/edited file is still perceived incorrectly by the target system, you need to find out in what step the file got converted incorrectly (or haven't got converted). If enabling (or disabling) text/ASCII transfer mode does not help with the problem and your transferred/edited file is still perceived incorrectly by the target system, you need to find out in what step the file got converted incorrectly (or haven't got converted).

Last modified: by martin