Quick integration of mainline changes to date
[p5sagit/p5-mst-13.2.git] / t / pragma / warn / doop
CommitLineData
0453d815 1 doop.c AOK
2
3 Malformed UTF-8 character
4
5
6__END__
7# doop.c
8use utf8 ;
9$_ = "\x80 \xff" ;
10chop ;
11EXPECT
12Malformed UTF-8 character at - line 4.
13########
14# doop.c
146174a9 15BEGIN {
16 if (ord("\t") == 5) {
17 print "SKIPPED\n# Character codes differ on ebcdic machines.";
18 exit 0;
19 }
20}
4438c4b7 21use warnings 'utf8' ;
0453d815 22use utf8 ;
23$_ = "\x80 \xff" ;
24chop ;
4438c4b7 25no warnings 'utf8' ;
0453d815 26$_ = "\x80 \xff" ;
27chop ;
28EXPECT
146174a9 29\x80 will produce malformed UTF-8 character; use \x{80} for that at - line 10.
30\xff will produce malformed UTF-8 character; use \x{ff} for that at - line 10.
31Malformed UTF-8 character at - line 11.