[Bug 221113] readline function in perl does not correctly set $!
bugzilla at redhat.com
bugzilla at redhat.com
Tue Jan 2 00:33:15 UTC 2007
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.
Summary: readline function in perl does not correctly set $!
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=221113
------- Additional Comments From wpilorz at gmail.com 2007-01-01 19:32 EST -------
Created an attachment (id=144617)
--> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=144617&action=view)
how to test I/O errors and readline behaviour
I am showing a transcript of another test;
Run this from directory where readline_test.pl is saved;
1. create a subdir and one test file with 400000 lines in that subdir; the file
size is about 6.76 MiB
2. create ISO9660 + rockridge image from that directory with mkisofs
3. create truncated image 5 MiB long
4. mount that truncated image through loop
5. run readline_test.pl for file in that mounted truncated image
tests show that with PERLIO=stdio correct error message is displayed, while
with PERLIO=perlio the error message is in most cases inappropriate.
The error message (from die $!) is correct (Input/output error) if $/ is set
to a reference to a number X such that the size of part of file ftest01 stored
in truncated image file is a whole multiple of X
--
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Fedora-perl-devel-list
mailing list