Difference in Export from Linux and Windows Servers

XPP 9.2.2.0 - Microsoft Windows Server 2012

We updated our XPP and switched from a Linux Server to a Microsoft Windows Server. We have noticed when exporting from the Windows server, we are getting extra carriage returns in our files, which is affecting some search and replace scripts. Has anyone else noticed this happening?

Thank you

Pam Schoenrock

Parents
  • About a million years ago when Unix was born, the developers figured that only the Line-Feed character was needed to end a line and start a new one.

    Microsoft figured that, no, a line printer needs to know the line has ended (line feed character) AND the carriage needs to be returned to the starting point (carriage return character) so they used BOTH characters.

    So, what you're seeing is that a Windows text file has CR+LF (or ^R + ^N if we're talking XPP), but Unix/Linux only has LF (^N).

    I suggest the file being operated upon via scripts is cleansed of CR/^R characters first, then run the script or, obviously, update the scripts to handle either CR+LF or just LF characters.

Reply
  • About a million years ago when Unix was born, the developers figured that only the Line-Feed character was needed to end a line and start a new one.

    Microsoft figured that, no, a line printer needs to know the line has ended (line feed character) AND the carriage needs to be returned to the starting point (carriage return character) so they used BOTH characters.

    So, what you're seeing is that a Windows text file has CR+LF (or ^R + ^N if we're talking XPP), but Unix/Linux only has LF (^N).

    I suggest the file being operated upon via scripts is cleansed of CR/^R characters first, then run the script or, obviously, update the scripts to handle either CR+LF or just LF characters.

Children