This is the mail archive of the
mailing list for the Cygwin project.
Updated: Perl 5.8.0-3 breaks binmode()
- From: Don Slutz <dslutz at arrayinc dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 09 Jun 2003 15:10:48 -0400
- Subject: Updated: Perl 5.8.0-3 breaks binmode()
This update breaks the usage of binmode(FH). I am sure that:
> News: Changes: - Moved Cygwin to the non DOSish platforms.
is the main reason. Last time I was in the perl sources, I saw that
only expected two types of file opens; text or binary. However cygwin
supports 3: default, text, and binary.
I would expect that declaring cygwin to be like VOS (text open is
then binary open; but do not change end of line handling) would be the
I have also found that | some times does things to end of lines also.
Here is output of some tests that I ran to validate this issue (tests
via direct e-mail):
test/txt/idos test/txt/odos-binmode differ: char 3, line 1
0000000 1 cr nl 2 cr nl
0000000 1 cr cr nl 2 cr cr nl
Which is the output from:
#! /usr/bin/perl -w
$line = 0;
# print "Lines: $line\n";
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html