Front page | perl.perl5.porters |
Postings from October 2010
[perl #78640] Unclear error when incorrect use of user-defined character properties
From:
voropaev . andrey @ gmail . com
Date:
October 27, 2010 06:14
Subject:
[perl #78640] Unclear error when incorrect use of user-defined character properties
Message ID:
rt-3.6.HEAD-7154-1288174323-1214.78640-75-0@perl.org
# New Ticket Created by voropaev.andrey@gmail.com
# Please include the string: [perl #78640]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=78640 >
This is a bug report for perl from voropaev.andrey@gmail.com,
generated with the help of perlbug 1.39 running under perl 5.12.2.
-----------------------------------------------------------------
[Please describe your issue here]
The "perldoc perlunicode" states that function returning description of character
property can return lines containing
ยท Something to include, prefixed by "+": a built-in character property (prefixed by
"utf8::") or a user-defined character property, to represent all the characters in
that property; two hexadecimal code points for a range; or a single hexadecimal code
point.
In reality, the user-defined character property name must be fully qualified (ie package::name).
If non qualified name is used, then perl gives out error
SWASHNEW didn't return an HV ref
Example script
#############################################
my $tst = "split-word another:one";
$tst =~ s/\p{IsSplitWord}+/**/g;
print $tst,"\n";
sub IsMySep
{
return <<EOQ;
002D
003A
002F
EOQ
}
sub IsSplitWord
{
return <<EOQ;
0041\t005A
0061\t007A
+IsMySep
EOQ
}
##################################################
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=none
---
Site configuration information for perl 5.12.2:
Configured by Gentoo at Mon Oct 25 11:45:43 CEST 2010.
Summary of my perl5 (revision 5 version 12 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.34-gentoo-r11, archname=x86_64-linux
uname='linux vandal 2.6.34-gentoo-r11 #2 mon oct 11 16:13:47 cest 2010 x86_64 amd athlon(tm) 64 processor 3200+ authenticamd gnulinux '
config_args='-des -Duseshrplib -Darchname=x86_64-linux -Dcc=x86_64-pc-linux-gnu-gcc -Doptimize=-march=athlon64 -O2 -pipe -Dldflags=-Wl,-O1 -Wl,--as-needed -Dprefix=/usr -Dsiteprefix=/usr -Dvendorprefix=/usr -Dscriptdir=/usr/bin -Dprivlib=/usr/lib64/perl5/5.12.2 -Darchlib=/usr/lib64/perl5/5.12.2/x86_64-linux -Dsitelib=/usr/lib64/perl5/site_perl/5.12.2 -Dsitearch=/usr/lib64/perl5/site_perl/5.12.2/x86_64-linux -Dvendorlib=/usr/lib64/perl5/vendor_perl/5.12.2 -Dvendorarch=/usr/lib64/perl5/vendor_perl/5.12.2/x86_64-linux -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/share/man/man1 -Dsiteman3dir=/usr/share/man/man3 -Dvendorman1dir=/usr/share/man/man1 -Dvendorman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.5.12.2 -Dlocincpth= -Duselargefiles -Dd_semctl_semun -Dcf_by=Gentoo -Dmyhostname=localhost -Dperladmin=root@localhost -Dinstallusrbinperl=n -Ud_csh -Uusenm -Di_ndbm -Di_gdbm -Di_db -DDEBUGGING=none -Dinc_version_list=
5.12.1/x86_64-linux 5.12.1 5.12.0/x86_64-linux 5.12.0 -Dusrinc=/usr/include -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='x86_64-pc-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-march=athlon64 -O2 -pipe',
cppflags='-fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.4.4', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='x86_64-pc-linux-gnu-gcc', ldflags ='-Wl,-O1 -Wl,--as-needed -fstack-protector'
libpth=/usr/local/lib64 /lib64 /usr/lib64
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.11.2.so, so=so, useshrplib=true, libperl=libperl.so.5.12.2
gnulibc_version='2.11.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -march=athlon64 -O2 -pipe -fstack-protector -Wl,-O1 -Wl,--as-needed'
Locally applied patches:
0001-gentoo_MakeMaker-RUNPATH.diff
0002-gentoo_config_over.diff
0003-gentoo_cpan_definstalldirs.diff
0004-gentoo_cpanplus_definstalldirs.diff
0005-gentoo_create-libperl-soname.diff
0006-gentoo_MakeMaker-delete_packlist.diff
0007-fixes_8d66b3f9_h2hp_fix.diff
---
@INC for perl 5.12.2:
/usr/lib64/perl5/site_perl/5.12.2/x86_64-linux
/usr/lib64/perl5/site_perl/5.12.2
/usr/lib64/perl5/vendor_perl/5.12.2/x86_64-linux
/usr/lib64/perl5/vendor_perl/5.12.2
/usr/lib64/perl5/5.12.2/x86_64-linux
/usr/lib64/perl5/5.12.2
/usr/lib64/perl5/site_perl
/usr/lib64/perl5/vendor_perl
.
---
Environment for perl 5.12.2:
HOME=/home/andrei
LANG (unset)
LANGUAGE (unset)
LC_CTYPE=en_US.UTF-8
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3:/usr/games/bin:/opt/Adobe/Reader8/bin:/opt/java/jdk1.6.0_03/bin:/opt/Adobe/Reader8/bin:/opt/java/jdk1.6.0_03/bin
PERL_BADLANG (unset)
SHELL=/bin/zsh
-
[perl #78640] Unclear error when incorrect use of user-defined character properties
by voropaev . andrey @ gmail . com