projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae90e35
)
Prepend a null byte to the test set.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 18 Nov 2001 16:12:32 +0000
(16:12 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 18 Nov 2001 16:12:32 +0000
(16:12 +0000)
p4raw-id: //depot/perl@13071
t/io/utf8.t
patch
|
blob
|
history
diff --git
a/t/io/utf8.t
b/t/io/utf8.t
index
2d74cff
..
d973a2a
100755
(executable)
--- 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" }