This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlre: Note a bug's existence
authorKarl Williamson <public@khwilliamson.com>
Thu, 22 Sep 2011 16:42:30 +0000 (10:42 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 22 Sep 2011 18:07:26 +0000 (12:07 -0600)
pod/perlre.pod

index e3bdd51..ad2dbf1 100644 (file)
@@ -76,6 +76,18 @@ Perl doesn't match multiple characters in an inverted bracketed
 character class, which otherwise could be highly confusing.  See
 L<perlrecharclass/Negation>.
 
+Another bug involves character classes that match both a sequence of
+multiple characters, and an initial sub-string of that sequence.  For
+example,
+
+ /[s\xDF]/i
+
+should match both a single and a double "s", since C<\xDF> (on ASCII
+platforms) matches "ss".  However, this bug
+(L<[perl #89774]|https://rt.perl.org/rt3/Ticket/Display.html?id=89774>)
+causes it to only match a single "s", even if the final larger match
+fails, and matching the double "ss" would have succeeded.
+
 Also, Perl matching doesn't fully conform to the current Unicode C</i>
 recommendations, which ask that the matching be made upon the NFD
 (Normalization Form Decomposed) of the text.  However, Unicode is