This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
perl-5.8.0 breaks code "working" on 5.6.1 over "\n"
- From: Greg Matheson <lang at ms dot chinmin dot edu dot tw>
- To: cygwin at cygwin dot com
- Date: Fri, 19 Jul 2002 10:59:32 +0800
- Subject: perl-5.8.0 breaks code "working" on 5.6.1 over "\n"
Code in Mark Overmeer's Mail::Box perl modules compares internal
representations of mail with those stored on disk by checking
length "strings"
and
-s FILEHANDLES
In Unix his tests work, because they both return the number of
bytes used, with \n as one byte. On Cygwin, they were too, at
least with perl-5.6.1, because they were both counting the CRLFs
as two bytes, even installing cygwin for both Unix and DOS format
text files (if my attempts to reinstall cygwin with DOS text file
mounts were working).
Now, 5.8.0's length is counting correctly, that is one less than it was
before for each \n, but the -s operator is still counting two for
\n.
I think it has something to do with the new PerlIO. See perldoc
perldelta for details.
--
Greg Matheson Learn a third language and
Chinmin College be born again, again.
Taiwan Penpals Archive <URL: http://netcity.hinet.net/kurage>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/