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

[perl #57800] \p{Letter} not matching unicode input when followed by $

Thread Next
From:
Mark Blackman
Date:
August 11, 2008 14:41
Subject:
[perl #57800] \p{Letter} not matching unicode input when followed by $
Message ID:
rt-3.6.HEAD-29759-1218467638-1300.57800-75-0@perl.org
# New Ticket Created by  Mark Blackman 
# Please include the string:  [perl #57800]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57800 >


This is a bug report for perl from mark@blackmans.org,
generated with the help of perlbug 1.35 running under perl v5.8.8.


-----------------------------------------------------------------
[Please enter your report here]

/^[\p{Letter}]+$/ doesn't match a cedilla C (utf8)

perl -ne 'chomp; if (/^[\p{Letter}]+$/) { print "letter-->",$_,"\n"; }'

and with a utf8 terminal, enter a cedilla C. U+0037

if you drop the final end-of-string match, the match succeeds
with a sincle cedilla C.

- Mark

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
     category=core
     severity=low
---
Site configuration information for perl v5.8.8:

Configured by MBlackman at Fri Dec  1 11:27:50 GMT 2006.

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
   Platform:
     osname=darwin, osvers=8.8.1, archname=darwin-2level
     uname='darwin markimac.local 8.8.1 darwin kernel version 8.8.1:  
mon sep 25 19:42:00 pdt 2006; root:xnu-792.13.8.obj~1release_i386  
i386 i386 '
     config_args='-des -Dprefix=/opt/local -Dccflags=-I'/opt/local/ 
include' -Dldflags=-L/opt/local/lib -Dvendorprefix=/opt/local -Dcc=/ 
usr/bin/gcc-4.0'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef 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='/usr/bin/gcc-4.0', ccflags ='-I/opt/local/include -fno- 
common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe - 
Wdeclaration-after-statement -I/opt/local/include',
     optimize='-O3',
     cppflags='-no-cpp-precomp -I/opt/local/include -fno-common - 
DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration- 
after-statement -I/opt/local/include'
     ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build  
5363)', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
     ivtype='long', ivsize=4, nvtype='double', nvsize=8,  
Off_t='off_t', lseeksize=8
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/opt/ 
local/lib'
     libpth=/opt/local/lib /usr/lib
     libs=-ldbm -ldl -lm -lc
     perllibs=-ldl -lm -lc
     libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false,  
libperl=libperl.a
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags='-L/opt/local/lib -bundle -undefined  
dynamic_lookup'

Locally applied patches:


---
@INC for perl v5.8.8:
     /opt/local/lib/perl5/5.8.8/darwin-2level
     /opt/local/lib/perl5/5.8.8
     /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level
     /opt/local/lib/perl5/site_perl/5.8.8
     /opt/local/lib/perl5/site_perl
     /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level
     /opt/local/lib/perl5/vendor_perl/5.8.8
     /opt/local/lib/perl5/vendor_perl
     .

---
Environment for perl v5.8.8:
     DYLD_LIBRARY_PATH (unset)
     HOME=/Volumes/cs/MBlackman
     LANG (unset)
     LANGUAGE (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
     PATH=/opt/local/apache2/bin:/opt/local/bin:/bin:/sbin:/usr/bin:/ 
usr/sbin:/usr/local/gwTeX/bin/i386-apple-darwin-current
     PERL_BADLANG (unset)
     SHELL=/bin/zsh


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