From: Rafael Garcia-Suarez Date: Wed, 23 Jun 2004 08:28:15 +0000 (+0000) Subject: Add a regression test for bug #23765 (by Jarkko) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=080534f4f98336805974bd928e17a27891ea025f;p=p5sagit%2Fp5-mst-13.2.git Add a regression test for bug #23765 (by Jarkko) p4raw-id: //depot/perl@22976 --- diff --git a/t/op/substr.t b/t/op/substr.t index 08f4165..9549d29 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"; +}