diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-18 21:36:21 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-18 21:36:21 +0000 |
commit | 19f0e64f26de3f28bf51141c77747a9242abc479 (patch) | |
tree | be68739d5483351e25ef74be66bfeaec63e8dc44 /ext | |
parent | 36930c6911a0b14ed39c10e078733d8d749fcb9b (diff) | |
download | perl-19f0e64f26de3f28bf51141c77747a9242abc479.tar.gz |
This is probably the reason for the GW failures.
p4raw-id: //depot/perl@17292
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Digest/MD5/t/files.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/Digest/MD5/t/files.t b/ext/Digest/MD5/t/files.t index b49149ccb9..bf8aa0684e 100644 --- a/ext/Digest/MD5/t/files.t +++ b/ext/Digest/MD5/t/files.t @@ -186,7 +186,10 @@ sub cat_file my($file) = @_; local $/; # slurp open(FILE, $file) or die "Can't open $file: $!"; - binmode(FILE); + + # For PerlIO (Perl 5.8.0 and later) in case of UTF-8 locales. + eval { binmode(FILE, ":bytes"); }; + my $tmp = <FILE>; close(FILE); $tmp; |