file), and use greek to test for something out of 8-bit latin, as
Jarkko suggested. Everything flows.
p4raw-id: //depot/perl@30805
}
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';
$line = <UTFIN>; is($line, $message);
}
close UTFIN;
- no utf8;
END { 1 while unlink "dup$$" }
}