develooper Front page | perl.perl5.porters | Postings from July 2001

Re [ID 20010706.002] utf8 lc($1) bohrbug under 5.6

From:
Mike Guy
Date:
July 6, 2001 02:50
Subject:
Re [ID 20010706.002] utf8 lc($1) bohrbug under 5.6
Message ID:
E15ISG3-00051h-00@draco.cus.cam.ac.uk
"Sean M. Burke" <sburke@cpan.org> wrote
> This:
>
> use utf8;
> foreach my $x ( ("POTATOES") x 3 ) {
>   print lc($1), " < $x / " if $x =~ m/^(\w*)/s;
> }
> 
> prints:
> 
> potatoes < POTATOES / 00c0[ascii 0x00]oes < POTATOES / potatoes < POTATOES /

Mended in perl5.6.1.

UTF8 is broken in many ways in perl5.6.0.   Upgrade.


Mike Guy



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About