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
readline returns EBADF at eof in 5.10.0 #9507
Comments
From Mark.Martinec@ijs.siThis is a bug report for perl from Mark.Martinec@ijs.si, The readline() function (or a diamond I/O operator <>) returns The situation worsened with 5.10.0 (compared to 5.8.8): $ echo "test" | PERLIO="stdio" perl5.8.8 -e \ $ echo "test" | PERLIO="stdio" perl5.10.0 -e \ This used to be an issue only on some Linux distributions The bug lures application programmers to ignore I/O status, Btw, it is a probably related to bug #39060 (regarding non-NL # line terminated with a NL # line not terminated with a NL Flags: Site configuration information for perl 5.10.0: Configured by mark at Fri Sep 26 14:12:03 UTC 2008. Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Locally applied patches: @INC for perl 5.10.0: Environment for perl 5.10.0: |
From @nwc10Dave notes: appears to be a regression since 5.8.8 |
@nwc10 - Status changed from 'new' to 'open' |
From p5p@spam.wizbit.beOn Thu Oct 02 03:10:45 2008, mmartinec wrote:
For me this happens with perl-5.8.1+. (on linux) Binary search with PERLIO=stdio: ----Program---- system( qq#echo "test" | PERLIO="stdio" $^X -e 'for(\$!=0; <>; ----Output of .../ptWpY1t/perl-5.8.0@19461/bin/perl---- ----EOF ($?='0')---- ----EOF ($?='0')---- http://public.activestate.com/cgi-bin/perlbrowse/p/19462 Try to comprehensively have a plan B if a PerlIO A binary search with PERLIO=perlio and without a newline: system( qq#echo -n "test" | PERLIO="perlio" $^X -e 'for(\$!=0; <>; ----Output of .../ptWpY1t/perl-5.8.0@19461/bin/perl---- Best regards, Bram |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#59550 (status was 'resolved')
Searchable as RT59550$
The text was updated successfully, but these errors were encountered: