New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activestate Perl, text files and tell() for Unix line endings #4131
Comments
From Martin_Hosken@sil.orgCreated by martin_hosken@sil.orgPerl for Win32 handles Unix style line endings of text files very well. But, if you do a tell() on a file with Perl Info
|
From [Unknown Contact. See original ticket]
Does this also happen when you use binmode() on the file? I imagine that what's happening is something like this: You open a I can imagine that turning on binmode() on files known not to be DOS Cheers, |
From [Unknown Contact. See original ticket]
OK. Here is my take on this. 1. There used to be a bug in ActivePerl akin to this, in that a normal DOS Thanks for looking into this. Martin |
From [Unknown Contact. See original ticket]Also notice that the described behaviour is perfectly valid. The result of E.g. when I used C on the IBM 370, they had something called "variable format" |
Although the above comment is worth keeping in mind, I tried to recreate this on Strawberry Perl v5.30.0 on Win 10. Using the following saved as a text file:
with this script:
With CRLF endings, the output was:
With LF endings, the output was:
That looks like the expected output. Seems like the reported problem has been fixed sometime down the years - or else is a bug for ActiveState not P5P - and this ticket can be closed. |
Migrated from rt.perl.org#7177 (status was 'open')
Searchable as RT7177$
The text was updated successfully, but these errors were encountered: