This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Relax some restrictions on optimizations for locale
authorKarl Williamson <public@khwilliamson.com>
Tue, 10 Jul 2012 04:00:16 +0000 (22:00 -0600)
committerKarl Williamson <public@khwilliamson.com>
Wed, 25 Jul 2012 03:13:48 +0000 (21:13 -0600)
commitce712dffad41e08420bdc13aa14486bb92469cc2
treeacd5cac1bd9011f68a3ac8a5d0b58340d08a5e4f
parent76a181d97532f0ae916ffcf05852248c93e97620
regcomp.c: Relax some restrictions on optimizations for locale

Prior to this commit, we didn't do any inversions for bracketed
character classes running under locale.  However, this is more strict
than necessary.  If there is no folding, and everything else is known at
compile time, then what is matched when the result is complemented is
well-defined, and can be done now.  (Also clarifies one of the affected
comments)
regcomp.c