This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Under /l any < 256 char can match any other
authorKarl Williamson <khw@cpan.org>
Mon, 4 Feb 2019 16:18:24 +0000 (09:18 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 5 Feb 2019 18:44:29 +0000 (11:44 -0700)
commit756097427dff9d822fd551c79334ab4fd1dc65bd
tree06876cd345c01123571f66241f1456779691b587
parent216dc346ceeeb9b6ba0fdd470ccfe4f8b2a286c4
regcomp.c: Under /l any < 256 char can match any other

The code knew this, but it was adding the ASCII alphabetics to the list
of things that matched in UTF-8 locales.  This is unnecessary, as we've
long had the infrastructure elsewhere to handle all potential mappings
from a Latin1 code point to other Latin1, so we can just rely on it.
And it created complexities for future commits in this series.

The MICRO SIGN is the exception, as it folds to non-Latin1 in UTF-8
locales, and this is the place where the structure exists to handle
that.
regcomp.c
t/re/anyof.t