Carriage Return Line Feed for transfers between XCOM for UNIX to Windows
search cancel

Carriage Return Line Feed for transfers between XCOM for UNIX to Windows

book

Article ID: 10181

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows XCOM Data Transport - Linux PC

Issue/Introduction

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

Environment

  • XCOM™ Data Transport® for Windows
  • XCOM™ Data Transport® for UNIX/Linux PC

Resolution

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