Kbase P6095: On Windows, OUTPUT TO generates CR + LF as a text line terminator.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  21/05/2010 |
|
Status: Verified
SYMPTOM(s):
On Windows, OUTPUT TO generates CR + LF as a text line terminator.
PUT SKIP generates CR and LF.
PUT CHR(10) generates CR and LF.
FACT(s) (Environment):
Only LF is needed, as the generated file must be used on UNIX.
All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)
CAUSE:
On the MS Windows platform, the EOL (End Of Line) is CR (carriage return, ASCII 0D) plus LF (line feed, ASCII 0A), whereas it is LF on UNIX.
By default, Progress generates the EOL character according to the standard for the platform where Progress is running.
On Windows, the BINARY option in the OUTPUT TO statement forces Progress to output only the LF character to terminate a text line.
FIX:
Add the BINARY option to the OUTPUT TO statement.