This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make qr/(?[ ])/ work in UTF-8 locales
authorKarl Williamson <khw@cpan.org>
Sun, 23 Aug 2015 16:30:02 +0000 (10:30 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 24 Aug 2015 18:11:33 +0000 (12:11 -0600)
commita0bd1a30d379f2625c307657d63fc50173d7a56d
tree7526c17ccb6fcaa679f4fe7cb4bbddf9a4eab466
parent2d3d6e6e7c2d50b1cc47032cf089151823fb20a6
Make qr/(?[ ])/ work in UTF-8 locales

Previously use of this under /l regex rules was a compile time error.
Now it works like \b{wb} and \b{sb}, which compile under locale rules
and always work like Unicode says they should.  A UTF-8 locale implies
Unicode rules, and the goal is for it to work seamlessly with the rest
of perl.  This construct was the only one I am aware of that didn't work
seamlessly (not counting OS interfaces) under UTF-8 LC_CTYPE locales.

For all three of these constructs, use with a non-UTF-8 runtime locale
raises a warning, and Unicode rules are used anyway.

UTF-8 locale collation still has problems, but this is low priority to
fix, as it's a lot of work, and if one really cares, one should be using
Unicode::Collate.
pod/perldelta.pod
pod/perldiag.pod
pod/perlrecharclass.pod
regcomp.c
regcomp.h
regexec.c
t/lib/warnings/regexec
t/re/reg_mesg.t
t/re/regex_sets.t