This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Perl bug with DOS file line endings?


Perl 5.6.1-1 seems to get confused as to whether its processing a DOS or
Unix format file, depending on what shell it is run under. I'm using it in
Windows 2000 to process a DOS format source file with line endings 0D0A
(\r\n):

When it is run directly from a DOS command prompt it works as expected and
produces an output file with line endings 0D0A.

When it is run from either bash or make initiated from a DOS command prompt,
then it produces an output file with line endings 0D0D0A (\r\r\n). It seems
that in this case it thinks that it is processing a Unix file, and has added
a 0D to change from the Unix 0A line ending to the DOS 0D0A.

I'm using CygWin make 3.79-3 and bash 2.04-5.



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]