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
sysread and syswrite do not process CRLF correctly #6357
Comments
From hirschk@labcorp.comCreated by kenhirsch@myself.comsysread() does not change CR-LF to "\n". It does not appear to Function readline() works properly. This behavior is different from earlier versions of Perl. Among The same problem exists with syswrite(). In previous versions of Perl Info
|
From enache@rdslink.roOn Wed, Mar 05, 2003 at 10:36:50PM -0000, Ken Hirsch wrote:
Does it still not help if you say just (I don't have a Windows system to check, but Fcntl does _not_ seem
I think i/o layers affect only read, readline, etc not sysread. Regards Adi |
From hirschk@labcorp.com
My test already explictly imported O_TEXT and checked the value: [...]
In previous versions of Perl, binmode() definitely did affect sysread. The |
Do we still want to change this 18 years later? I don't think we should. |
binmode still mentions it affects sysread and syswrite, but it's unclear what it means by that. Certainly its main effect now is to cause sysread/syswrite to die if you set an encoding layer. These functions already bypass buffered I/O. |
Migrated from rt.perl.org#21473 (status was 'open')
Searchable as RT21473$
The text was updated successfully, but these errors were encountered: