This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #89750]: Unicode regex negated case-insensitivity
authorKarl Williamson <public@khwilliamson.com>
Tue, 3 May 2011 17:44:28 +0000 (11:44 -0600)
committerJesse Vincent <jesse@bestpractical.com>
Tue, 3 May 2011 21:14:06 +0000 (17:14 -0400)
commit827f5bb80b513fa181ae206648e6d58d9d82eb29
treeaf4604d629d45908c5522e6bd0ba93dde7734a1c
parent36bb2ab64fa2ef022d7870082c0dcc6db902c86e
PATCH: [perl #89750]: Unicode regex negated case-insensitivity

This patch causes inverted [bracketed] character classes to not handle
multi-character folds.  The reason is that these can lead to very
counter-intuitive results (see bug discussion).

In an inverted character class, only single-char folds are now
generated.  However the fold for \xDF=>ss is hard-coded in,
and it was too much trouble sending flags to the sub-sub routine that
does this, so another check is done at the point of storing the list of
multi-char folds.  Since \xDF doesn't have a single char fold, this
works.
regcomp.c
t/re/fold_grind.t
t/re/re_tests