summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-27 01:22:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-27 01:22:22 +0000
commit933bc096593f55b9633fb193815ddd81d5b5ec1b (patch)
treea9bdb0a4ed6957968d855d49d64a0fab4b97db70 /t/op
parentcdb2dd7b4ee19fda563e304299e333d9e59c2c9e (diff)
downloadperl-933bc096593f55b9633fb193815ddd81d5b5ec1b.tar.gz
\141 is malformed "unexpected continuation byte" in UTF-EBCDIC.
Delay the match until runtime. p4raw-id: //depot/perl@13301
Diffstat (limited to 't/op')
-rwxr-xr-xt/op/append.t16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/op/append.t b/t/op/append.t
index 5e70659c07..171ed0f0f6 100755
--- a/t/op/append.t
+++ b/t/op/append.t
@@ -45,36 +45,36 @@ if ($_ eq 'abcdef') {print "ok 3\n";} else {print "not ok 3\n";}
my $t2 = $a; $t2 .= $ub;
if (ord('A') == 193) {
# print $t2 eq "\141\141\000" ? "ok 7\n" : "not ok 7\t# $t2\n";
- print $t2 =~ /\141/ ? "ok 7\n" : "not ok 7\t# $t2\n";
+ print eval '$t2 =~ /\141/' ? "ok 7\n" : "not ok 7\t# $t2\n";
}
else {
- print $t2 =~ /\142/ ? "ok 7\n" : "not ok 7\t# $t2\n";
+ print eval '$t2 =~ /\142/' ? "ok 7\n" : "not ok 7\t# $t2\n";
}
my $t3 = $u; $t3 .= $ab;
print $t3 =~ /\142/ ? "ok 8\n" : "not ok 8\t# $t3\n";
my $t4 = $u; $t4 .= $ub;
if (ord('A') == 193) {
- print $t4 =~ /\141/ ? "ok 9\n" : "not ok 9\t# $t4\n";
+ print eval '$t4 =~ /\141/' ? "ok 9\n" : "not ok 9\t# $t4\n";
}
else {
- print $t4 =~ /\142/ ? "ok 9\n" : "not ok 9\t# $t4\n";
+ print eval '$t4 =~ /\142/' ? "ok 9\n" : "not ok 9\t# $t4\n";
}
my $t5 = $a; $t5 = $ab . $t5;
print $t5 =~ /\142/ ? "ok 10\n" : "not ok 10\t# $t5\n";
my $t6 = $a; $t6 = $ub . $t6;
if (ord('A') == 193) {
- print $t6 =~ /\141/ ? "ok 11\n" : "not ok 11\t# $t6\n";
+ print eval '$t6 =~ /\141/' ? "ok 11\n" : "not ok 11\t# $t6\n";
}
else {
- print $t6 =~ /\142/ ? "ok 11\n" : "not ok 11\t# $t6\n";
+ print eval '$t6 =~ /\142/' ? "ok 11\n" : "not ok 11\t# $t6\n";
}
my $t7 = $u; $t7 = $ab . $t7;
print $t7 =~ /\142/ ? "ok 12\n" : "not ok 12\t# $t7\n";
my $t8 = $u; $t8 = $ub . $t8;
if (ord('A') == 193) {
- print $t8 =~ /\141/ ? "ok 13\n" : "not ok 13\t# $t8\n";
+ print eval '$t8 =~ /\141/' ? "ok 13\n" : "not ok 13\t# $t8\n";
}
else {
- print $t8 =~ /\142/ ? "ok 13\n" : "not ok 13\t# $t8\n";
+ print eval '$t8 =~ /\142/' ? "ok 13\n" : "not ok 13\t# $t8\n";
}
}