This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf5ca8f
)
Add a regression test for bug #23765 (by Jarkko)
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 23 Jun 2004 08:28:15 +0000
(08:28 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 23 Jun 2004 08:28:15 +0000
(08:28 +0000)
p4raw-id: //depot/perl@22976
t/op/substr.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/substr.t
b/t/op/substr.t
index
08f4165
..
9549d29
100755
(executable)
--- a/
t/op/substr.t
+++ b/
t/op/substr.t
@@
-1,6
+1,6
@@
#!./perl
-print "1..1
89
\n";
+print "1..1
90
\n";
#P = start of string Q = start of substr R = end of substr S = end of string
@@
-651,3
+651,10
@@
ok 174, $x eq "\x{100}\x{200}\xFFb";
ok 189, substr($text,$pos,1) eq $pos;
}
+
+# [perl #23765]
+{
+ my $a = pack("C", 0xbf);
+ substr($a, -1) &= chr(0xfeff);
+ ok 190, $a eq "\xbf";
+}