This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Introduce C<use feature "unicode_strings">
authorRafael Garcia-Suarez <rgs@consttype.org>
Sun, 20 Dec 2009 15:23:36 +0000 (16:23 +0100)
committerRafael Garcia-Suarez <rgs@consttype.org>
Sun, 20 Dec 2009 15:28:36 +0000 (16:28 +0100)
commit1863b87966ed39b042c45e12d1b4e0b90b9cc071
treeeae5c03c697269b036352d4b007f9c1294f189c9
parent1d5fe431325abdb0f3947d563ebdef67bd4cb7cd
Introduce C<use feature "unicode_strings">

This turns on the unicode semantics for uc/lc/ucfirst/lcfirst
operations on strings without the UTF8 bit set but with ASCII
characters higher than 127. This replaces the "legacy" pragma
experiment.

Note that currently this feature sets both a bit in $^H and
a (unused) key in %^H. The bit in $^H could be replaced by
a flag on the uc/lc/etc op. It's probably not feasible to
test a key in %^H in pp_uc in friends each time we want to
know which semantics to apply.
MANIFEST
Porting/Maintainers.pl
lib/feature.pm
lib/feature/unicode_strings.t [moved from lib/legacy.t with 98% similarity]
lib/legacy.pm [deleted file]
perl.h
t/lib/feature/bundle
t/uni/overload.t
toke.c
utf8.h