Closed p5pRT closed 14 years ago
This is a bug report for perl from khw@khw-desktop.nonet\, generated with the help of perlbug 1.39 running under perl 5.13.1.
A user-defined \N{} alias must currently map to a known Unicode name. This precludes using the Unicode private use areas.
Flags: category=library severity=medium module=charnames
Site configuration information for perl 5.13.1:
Configured by khw at Mon May 24 07:06:34 MDT 2010.
Summary of my perl5 (revision 5 version 13 subversion 1) configuration: Commit id: b081dd7eaaec2b6ee43335645ab40cff0ca3f91a Platform: osname=linux\, osvers=2.6.27-17-generic\, archname=i686-linux uname='linux khw-desktop 2.6.27-17-generic #1 smp fri mar 12 03:09:00 utc 2010 i686 gnulinux ' config_args='-s -d -Dprefix=/home/khw/blead -Dusedevel -D'optimize=-g3' -A'optimize=-g3' -A'optimize=-O0'' 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 ='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'\, optimize='-O0 -g3'\, cppflags='-DDEBUGGING -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 -g3 -g3 -O0 -L/usr/local/lib -fstack-protector'
Locally applied patches:
@INC for perl 5.13.1: lib /home/khw/blead/lib/perl5/site_perl/5.13.1/i686-linux /home/khw/blead/lib/perl5/site_perl/5.13.1 /home/khw/blead/lib/perl5/5.13.1/i686-linux /home/khw/blead/lib/perl5/5.13.1 /home/khw/blead/lib/perl5/site_perl .
Environment for perl 5.13.1: 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
This series of commits does most of my planned changes to charnames for 5.14.
It adds the abbreviations of the controls\, like BEL\, to its repertoire\, and makes sure vianame() operates on the same domain as \N{}. It also adds all the commonly accepted abbreviations that Unicode publishes\, so things like NBSP\, SHY\, join BOM as being recognized.
It fixes #75450 so that a user can now name private use code points\, as well as any other. It fixes the bug whereby if a user already had defined NBSP to be something else\, our new abbreviation would have clobbered it.
It more than doubles the speed of viacode().
The pod is extensively cleaned up\, and perldelta to correspond with this patch.
Many new tests are added.
Migrated from rt.perl.org#75450 (status was 'resolved')
Searchable as RT75450$