Closed p5pRT closed 20 years ago
IO::File::binmode() fails to set any PerlIO layer\, because it tests @_ for 0 or 1 elements\, but it is called as object method having always at least one element in @_. With a LAYER argument\, @_ has two elements and IO::File::binmode() croak()s.
Trivial patch:
Alexander Foken wrote:
IO::File::binmode() fails to set any PerlIO layer\, because it tests @_ for 0 or 1 elements\, but it is called as object method having always at least one element in @_. With a LAYER argument\, @_ has two elements and IO::File::binmode() croak()s.
Trivial patch:
Thanks\, applied as change #24869 to the development version of perl.
--- IO/File.pm-buggy Mon Jun 06 13:29:48 2005 +++ IO/File.pm Fri Jun 10 14:26:35 2005 @@ -197\,7 +197\,7 @@ ##
sub binmode { - ( @_ == 0 or @_ == 1 ) or croak 'usage $fh->binmode([LAYER])'; + ( @_ == 1 or @_ == 2 ) or croak 'usage $fh->binmode([LAYER])';
The RT System itself - Status changed from 'new' to 'open'
@rgs - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#36237 (status was 'resolved')
Searchable as RT36237$