summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-05-19 19:52:23 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-05-19 19:52:23 +0000
commit67e51b56f7d37807e6bfe303642911618f0d975c (patch)
tree832cf993523a364a3ef04c469d9fdbed374d86f3
parent96a925ab0077cdd24bd7d328f20be3d5373d4885 (diff)
downloadperl-67e51b56f7d37807e6bfe303642911618f0d975c.tar.gz
Further -Uuseperlio tweaking.
p4raw-id: //depot/perl@19571
-rw-r--r--ext/Encode/t/Unicode.t9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/Encode/t/Unicode.t b/ext/Encode/t/Unicode.t
index 3329d7c650..882d700985 100644
--- a/ext/Encode/t/Unicode.t
+++ b/ext/Encode/t/Unicode.t
@@ -116,13 +116,16 @@ my @file = sort grep {/\.utf$/o} readdir $dh;
closedir $dh;
for my $file (@file){
my $path = File::Spec->catfile($dir, $file);
-+ open my $fh, '<', $path or die "$path:$!";
+ open my $fh, '<', $path or die "$path:$!";
+ my $content;
if (PerlIO::Layer->find('perlio')){
binmode $fh => ':utf8';
- }else{
+ $content = join('' => <$fh>);
+ }else{ # ugh!
binmode $fh;
+ $content = join('' => <$fh>);
+ Encode::_utf8_on($content)
}
- my $content = join('' => <$fh>);
close $fh;
is(decode("UTF-7", encode("UTF-7", $content)), $content,
"UTF-7 RT:$file");