# Now we have a deformed file.
-if (ord('A') == 193) {
- skip( "EBCDIC doesn't complain" );
-} else {
- open F, "<:utf8", "a" or die $!;
- $x = <F>; chomp $x;
- local $SIG{__WARN__} = sub { ok( 1 ) };
- eval { sprintf "%vd\n", $x };
+SKIP: {
+ if (ord('A') == 193) {
+ skip( "EBCDIC doesn't complain" );
+ } else {
+ open F, "<:utf8", "a" or die $!;
+ $x = <F>; chomp $x;
+ local $SIG{__WARN__} = sub { ok( 1 ) };
+ eval { sprintf "%vd\n", $x };
+ }
}
close F;
utf8::upgrade($s) if $v->[1] eq "utf8";
$s .= <F>;
- print $s eq chr($v->[0]) . chr($u->[0]) ?
- "ok $t # rcatline utf8\n" : "not ok $t # rcatline utf8\n";
+ ok( $s eq chr($v->[0]) . chr($u->[0]), 'rcatline utf8' );
close F;
$t++;
}