Mail Archives: cygwin/2002/07/18/23:01:13
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/
- Raw text -