This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp.c: Changing case of utf8 strings under locale uses locale for < 255
authorKarl Williamson <public@khwilliamson.com>
Wed, 14 Dec 2011 05:01:46 +0000 (22:01 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 15 Dec 2011 23:26:00 +0000 (16:26 -0700)
commit094a2f8c3da82fac9e0698c2daeb7e94d0ae765a
tree377042bb7ad310d7b0b1cf66079e80e5d8743e0a
parent81c6c7ce308a6bd705e6d8343eb996df5a938aa5
pp.c: Changing case of utf8 strings under locale uses locale for < 255

As proposed on p5p and approved, this changes the functions uc(), lc(),
ucfirst(), and lcfirst() to respect locale for code points < 255; and
use Unicode semantics for those above 255.  This results in better, but
not perfect results, as noted in the changed pods, and brings these
functions into line with how regular expression pattern matching already
works.
lib/locale.t
pod/perldelta.pod
pod/perlfunc.pod
pp.c