From 0e417e4df08b660428345b505d48a7828b5d317b Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Tue, 18 Jun 2013 08:26:12 -0700 Subject: [PATCH] perldelta for #118297 copied from f4612955aa389 on the maint-5.18 branch --- pod/perldelta.pod | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 82c2b74..06a276e 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -654,6 +654,19 @@ by the C category. On the other hand, the C category controlled its fatal-ness. It is now entirely handled by the C category. +=item * + +Perl v5.18 inadvertently introduced a bug whereby interpolating mixed up- +and down-graded UTF-8 strings in a regex could result in malformed UTF-8 +in the pattern: specifically if a downgraded character in the range +C<\x80..\xff> followed a UTF-8 string, e.g. + + utf8::upgrade( my $u = "\x{e5}"); + utf8::downgrade(my $d = "\x{e5}"); + /$u$d/ + +[RT #118297] + =back =head1 Known Problems -- 2.7.4