Front page | perl.perl5.porters |
Postings from December 2009
[perl #71752] Case-insensitive matching of characters above 255 in ranges in character classes doesn't work
From:
karl williamson
Date:
December 31, 2009 05:21
Subject:
[perl #71752] Case-insensitive matching of characters above 255 in ranges in character classes doesn't work
Message ID:
rt-3.6.HEAD-1505-1262193992-1933.71752-75-0@perl.org
# New Ticket Created by karl williamson
# Please include the string: [perl #71752]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=71752 >
This is a bug report for perl from khw@khw-desktop.nonet,
generated with the help of perlbug 1.39 running under perl 5.11.3.
-----------------------------------------------------------------
perl -E 'say chr(0x0430) =~ /[=\x{0410}]/i'
1
perl -E 'say chr(0x0430) =~ /[=\x{0410}-\x{0411}]/i'
That is, it didn't match in the second case. (The equal sign is to keep
the class from being optimized out.) If the code point is in a range in
a character class, case-insensitive matching doesn't work on it.
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl 5.11.3:
Configured by khw at Tue Dec 29 12:45:43 MST 2009.
Summary of my perl5 (revision 5 version 11 subversion 3) configuration:
Commit id: 9f815e241cf04d04fc645970753438216a0ed024
Platform:
osname=linux, osvers=2.6.27-16-generic, archname=i686-linux
uname='linux khw-desktop 2.6.27-16-generic #1 smp tue dec 1
17:56:54 utc 2009 i686 gnulinux '
config_args='-s -d -Dprefix=/home/khw/fastbleadperl -Dusedevel'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
ccversion='', gccversion='4.3.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.8.90.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.8.90'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'
Locally applied patches:
---
@INC for perl 5.11.3:
/home/khw/fastbleadperl/lib/site_perl/5.11.3/i686-linux
/home/khw/fastbleadperl/lib/site_perl/5.11.3
/home/khw/fastbleadperl/lib/5.11.3/i686-linux
/home/khw/fastbleadperl/lib/5.11.3
.
---
Environment for perl 5.11.3:
HOME=/home/khw
LANG=en_US.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/khw/bin:/home/khw/print/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/opt/real/RealPlayer:/home/khw/cxoffice/bin
PERL_BADLANG (unset)
SHELL=/bin/ksh
-
[perl #71752] Case-insensitive matching of characters above 255 in ranges in character classes doesn't work
by karl williamson