forked from Perl/perl5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dist/IO: move binmode from IO::File to IO::Handle
since you can binmode() any handle. Fixes Perl#17457 which is most of this change, I only added tests, such as they are.
- Loading branch information
Showing
4 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!./perl -w | ||
|
||
use strict; | ||
require($ENV{PERL_CORE} ? "../../t/test.pl" : "./t/test.pl"); | ||
|
||
plan(tests => 2); | ||
|
||
use_ok("IO::Handle"); | ||
my $io = IO::Handle->new; | ||
|
||
can_ok($io, qw(fdopen close opened fileno getc eof print printf say truncate read), | ||
qw(sysread write syswrite stat autoflush binmode fcntl ioctl)); |