Change 13071 by jhi@alpha on 2001/11/18 16:12:32
Prepend a null byte to the test set.
Affected files ...
.... //depot/perl/t/io/utf8.t#16 edit
Differences ...
==== //depot/perl/t/io/utf8.t#16 (xtext) ====
Index: perl/t/io/utf8.t
--- perl/t/io/utf8.t.~1~ Sun Nov 18 09:15:05 2001
+++ perl/t/io/utf8.t Sun Nov 18 09:15:05 2001
@@ -188,8 +188,10 @@
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 @@
last;
}
}
+close F;
print "ok 26\n";
END { 1 while unlink "a" }
End of Patch.