summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-18 16:12:32 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-18 16:12:32 +0000
commitb6b18d39e9dad5023303aa18593b25ffbeb4dbeb (patch)
tree527e8bd6ed8f7c57fc7a81752a7172fdc7e452e0 /t
parent93ec81bfdef1a6080b8c6bb1973822006afbcb38 (diff)
downloadperl-b6b18d39e9dad5023303aa18593b25ffbeb4dbeb.tar.gz
Prepend a null byte to the test set.
p4raw-id: //depot/perl@13071
Diffstat (limited to 't')
-rwxr-xr-xt/io/utf8.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/io/utf8.t b/t/io/utf8.t
index 2d74cff976..d973a2aae6 100755
--- a/t/io/utf8.t
+++ b/t/io/utf8.t
@@ -188,8 +188,10 @@ unlink('a');
open F, ">a";
@a = map { chr(1 << ($_ << 2)) } 0..5; # 0x1, 0x10, .., 0x100000
+unshift @a, chr(0); # ... and a null byte in front just for fun
print F @a;
close F;
+
open F, "<:utf8", "a";
$a = 0;
for (@a) {
@@ -205,6 +207,7 @@ for (@a) {
last;
}
}
+close F;
print "ok 26\n";
END { 1 while unlink "a" }