# New Ticket Created by Anders Melchiorsen
# Please include the string: [perl #101710]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=101710 >
Hello.
I have noticed this unexpected behaviour in perl 5.14.2:
perl -e 'use 5.012; my $x="br\x{f8}ndby"; $x =~ s/b/X/gi; say $x;'
outputs "Xrøndby" (in a latin1 terminal) -- that is, the last "b" is not replaced with an "X".
I have found that it works as expected in 5.12.2 as well as the blead branch. I do not know when the problem appeared, but I bisected the fix to commit 0a185c45d11435c3182b92d9373bd28ab7c386b2.
The commit message seems to consider this an optimization rather than a bugfix. So I wanted to make you aware of this, and suggest inclusion on the 5.14 branch.
Thanks,
Anders.
Thread Next