New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POSIX character class [:upper:] is broken #11975
Comments
From rkitover@cpan.orgThis is a bug report for perl from rkitover@cpan.org, 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 Flags: Site configuration information for perl 5.15.8: Configured by rkitover at Sun Feb 26 21:49:34 EST 2012. Summary of my perl5 (revision 5 version 15 subversion 8) configuration: Locally applied patches: @INC for perl 5.15.8: Environment for perl 5.15.8: |
From @jkeenanOn Mon Feb 27 13:38:06 2012, caelum wrote:
Using the attached program, 111400.pl, in Perl 5.14.2, I cannot ##### 3. is uppercase 6. is lowercase 8. wtf But I notice that you are using 5.15.8. Could you try with some version Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @jkeenanOn Mon Feb 27 18:07:32 2012, jkeenan wrote:
Hmm, when I run it with blead, I *do* reproduce your results. ##### 3. is uppercase 5. is uppercase 7. wtf So we have a bug confirmed as having been introduced somewhere in Perl 5.15. jimk |
From @nwc10On Mon, Feb 27, 2012 at 01:38:07PM -0800, rkitover@cpan.org wrote:
Running this: ../perl/Porting/bisect.pl -le 'use utf8; die "wtf" if "\x{1e3f}" =~ /^[[:upper:]]\z/' [yes, really, it's that simple. I changed the print to a die, to make the finds this: HEAD is now at ea317cc regcomp.c: Use compiled-in inversion lists regcomp.c: Use compiled-in inversion lists This uses the compiled inversion lists to generate Posix character This paves the way for future optimizations, and fixes the bug which has :040000 040000 d06dc60300803101cef2e81a1d2f8cd5fb00172a a3d57076077cd1581c3d4599720266b05d39e42a M pod Nicholas Clark |
From @khwilliamsonFixed by commit b4069bc Thanks for finding this -- |
@khwilliamson - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#111400 (status was 'resolved')
Searchable as RT111400$
The text was updated successfully, but these errors were encountered: