summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-23 08:28:15 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-23 08:28:15 +0000
commit080534f4f98336805974bd928e17a27891ea025f (patch)
treebd094aac940dd274c3d595812b6460bc59bf6b4e /t
parentbf5ca8fdbc3b8fa0e0bb2a3747df640d563e2e84 (diff)
downloadperl-080534f4f98336805974bd928e17a27891ea025f.tar.gz
Add a regression test for bug #23765 (by Jarkko)
p4raw-id: //depot/perl@22976
Diffstat (limited to 't')
-rwxr-xr-xt/op/substr.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/op/substr.t b/t/op/substr.t
index 08f416553a..9549d29028 100755
--- a/t/op/substr.t
+++ b/t/op/substr.t
@@ -1,6 +1,6 @@
#!./perl
-print "1..189\n";
+print "1..190\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";
+}