summaryrefslogtreecommitdiff
path: root/t/io
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-31 06:16:09 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-31 06:16:09 +0000
commit40986f42b4dca4ed841e1a7f7d848e9b5f199680 (patch)
tree98a7377d3675dbf402181efa201b3fa4bc8e9db1 /t/io
parent50b479ab2d3e2eea13eaf6eb0b160a2794b8edbd (diff)
downloadperl-40986f42b4dca4ed841e1a7f7d848e9b5f199680.tar.gz
Don't use utf8.pm in the test (avoiding embedding utf8 in the test
file), and use greek to test for something out of 8-bit latin, as Jarkko suggested. Everything flows. p4raw-id: //depot/perl@30805
Diffstat (limited to 't/io')
-rwxr-xr-xt/io/dup.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/io/dup.t b/t/io/dup.t
index 0287023301..d1016881fc 100755
--- a/t/io/dup.t
+++ b/t/io/dup.t
@@ -133,10 +133,10 @@ SKIP: {
}
close G;
- use utf8;
open UTFOUT, '>:utf8', "dup$$" or die $!;
open UTFDUP, '>&UTFOUT' or die $!;
- my $message = "ça marche pas\n";
+ # some old greek saying.
+ my $message = "\x{03A0}\x{0391}\x{039D}\x{03A4}\x{0391} \x{03A1}\x{0395}\x{0399}\n";
print UTFOUT $message;
print UTFDUP $message;
binmode UTFDUP, ':utf8';
@@ -151,7 +151,6 @@ SKIP: {
$line = <UTFIN>; is($line, $message);
}
close UTFIN;
- no utf8;
END { 1 while unlink "dup$$" }
}