This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

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/


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