Carriage Return and Line Feed for transfers between Unix to Windows

Document ID : KB000010181
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

What happens with the End-of-line-character(s) during a XCOM-transfer between Windows and Unix?

Instructions:

On Windows the End-of-line is indicated by the two characters: [CR] (Carriage Return - x'0D') and [LF] (Line Feed - x'0A'). On Unix-Flavours the End-of-Line is indicated by [LF] (Line Feed - x'0A') only.

When you transfer a file from Unix to Windows and use CODE_FLAG=ASCII or CODE_FLAG=UTF8 then the [LF]-Line Feed Characters are translated into [CR][LF] Carriage Return-Line Feed by Windows, NOT by XCOM!. Only if you use CODE_FLAG=BINARY the transfer is done byte by byte and the [LF] are not touched by Windows.

When you transfer a file from Windows to Unix and use CODE_FLAG=ASCII or CODE_FLAG=UTF8 then the [CR][LF]-Carriage Return-Line Feed Characters are translated into [LF] Line Feed by the Unix Operating System, NOT by XCOM!. Only if you use CODE_FLAG=BINARY the transfer is done byte by byte and the [CR][LF] is not touched by Unix.