develooper Front page | perl.perl5.porters | Postings from October 2008

[perl #60156] A number of characters match both a posix class and its complement

Thread Next
From:
karl williamson
Date:
October 26, 2008 16:39
Subject:
[perl #60156] A number of characters match both a posix class and its complement
Message ID:
rt-3.6.HEAD-29762-1225060373-663.60156-75-0@perl.org
# New Ticket Created by  karl williamson 
# Please include the string:  [perl #60156]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60156 >



This is a bug report for perl from public@khwilliamson.com,
generated with the help of perlbug 1.39 running under perl 5.11.0.


-----------------------------------------------------------------
use utf8;

print '©' =~ /[[:graph:]]/, "\n";
print '©' =~ /[[:^graph:]]/, "\n";

both print 1.  This happens for various posix classes, and various
utf8 characters.  Also for perl 5.8
-----------------------------------------------------------------
---
Flags:
     category=core
     severity=medium
---
This perlbug was built using Perl 5.11.0 - Wed Oct 22 19:16:44 MDT 2008
It is being executed now by  Perl 5.11.0 - Fri Oct 24 11:08:58 MDT 2008.

Site configuration information for perl 5.11.0:

Configured by khw at Fri Oct 24 11:08:58 MDT 2008.

Summary of my perl5 (revision 5 version 11 subversion 0 patch 34566) 
configuration:
   Platform:
     osname=linux, osvers=2.6.24-21-generic, archname=i686-linux
     uname='linux karl 2.6.24-21-generic #1 smp mon aug 25 17:32:09 utc 
2008 i686 gnulinux '
     config_args='-d -Dmksymlinks -Dprefix=/home/khw/myperl -Dusedevel 
-DDEBUGGING=both'
     hint=previous, 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 ='-DDEBUGGING -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',
     optimize='-O2 -g',
     cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include -DDEBUGGING -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64'
     ccversion='', gccversion='4.2.3 (Ubuntu 4.2.3-2ubuntu7)', 
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.7.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version='2.7'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
     cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib 
-fstack-protector'

Locally applied patches:
     DEVEL

---
@INC for perl 5.11.0:
     /home/khw/myperl/lib/5.11.0/i686-linux
     /home/khw/myperl/lib/5.11.0
     /home/khw/myperl/lib/site_perl/5.11.0/i686-linux
     /home/khw/myperl/lib/site_perl/5.11.0
     .

---
Environment for perl 5.11.0:
     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:/home/khw/cxoffice/bin
     PERL_BADLANG (unset)
     SHELL=/bin/ksh


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