develooper Front page | perl.perl5.porters | Postings from February 2012

[perl #111400] POSIX character class [:upper:] is broken

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
February 27, 2012 18:07
Subject:
[perl #111400] POSIX character class [:upper:] is broken
Message ID:
rt-3.6.HEAD-4610-1330394852-852.111400-15-0@perl.org
On Mon Feb 27 13:38:06 2012, caelum wrote:

> -----------------------------------------------------------------
> Running this command:
> 
> perl -le 'use utf8; print "is uppercase" if "ḿ" =~ /^[[:upper:]]\z/'
> 
> prints "is uppercase" but should not
> 
> This command:
> 
> perl -le 'use utf8; print "wtf" if "\x{1e3f}" =~ /^[[:upper:]]\z/'
> 
> prints "wtf" but should not
> 

Using the attached program, 111400.pl, in Perl 5.14.2, I cannot
reproduce your results.  My program's output DWIMs:

#####
$ perl 111400.pl 
2. is lowercase

3. is uppercase

6. is lowercase

8. wtf
#####

But I notice that you are using 5.15.8.  Could you try with some version
of Perl 5.14 so that we can see if this is a bug in devel?

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=111400

Thread Previous | Thread Next


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