diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-16 08:02:31 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-16 08:02:31 +0000 |
commit | 17ba578bf41cdb4933f7c577f6b4ba5403154874 (patch) | |
tree | 7132babbdba244e48b2f798130d2770001867d52 /ext | |
parent | 21d92c23f49d139d8bddefbab6f984eb17e12d43 (diff) | |
download | perl-17ba578bf41cdb4933f7c577f6b4ba5403154874.tar.gz |
Make the :bytes conditional on PerlIO.
p4raw-id: //depot/perl@18989
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Encode/t/CJKT.t | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/Encode/t/CJKT.t b/ext/Encode/t/CJKT.t index b8c22223fb..884a90f4de 100644 --- a/ext/Encode/t/CJKT.t +++ b/ext/Encode/t/CJKT.t @@ -12,10 +12,11 @@ BEGIN { print "1..0 # Skip: EBCDIC\n"; exit 0; } - unless (PerlIO::Layer->find('perlio')){ - print "1..0 # Skip: PerlIO required\n"; - exit 0; - } +# should work w/o PerlIO now! +# unless (PerlIO::Layer->find('perlio')){ +# print "1..0 # Skip: PerlIO required\n"; +# exit 0; +# } $| = 1; } use strict; @@ -55,7 +56,8 @@ for my $charset (sort keys %Charset){ my $dst_utf = File::Spec->catfile($dir,"$$.utf"); open $src, "<$src_enc" or die "$src_enc : $!"; - binmode($src, ":bytes"); # needed when :utf8 in default open layer + binmode($src, ":bytes") # needed if :utf8 in default open layer + if PerlIO::Layer->find('perlio'); $txt = join('',<$src>); close($src); |