Front page | perl.perl5.porters |
Postings from February 2012
[perl #111338] Warnings in utf8 subcategories do nothing in isolation
From:
Aaron Crane
Date:
February 26, 2012 11:56
Subject:
[perl #111338] Warnings in utf8 subcategories do nothing in isolation
Message ID:
rt-3.6.HEAD-4610-1330178241-813.111338-75-0@perl.org
# New Ticket Created by Aaron Crane
# Please include the string: [perl #111338]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=111338 >
This is a bug report for perl from arc@cpan.org,
generated with the help of perlbug 1.39 running under perl 5.15.8.
-----------------------------------------------------------------
[Please describe your issue here]
When used in isolation, the C<non_unicode>, C<nonchar>, and
C<surrogate> warning subcategories don't trigger the emission of
the relevant warnings; though using their parent category C<utf8>
does.
For example:
$ ./perl -CS -e 'use warnings "nonchar"; print chr 0xffff' > /dev/null
$ ./perl -CS -e 'use warnings "utf8"; print chr 0xffff' > /dev/null
Unicode non-character U+FFFF is illegal for open interchange at -e line 1.
Patch attached, containing failing tests.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=library
severity=low
---
Site configuration information for perl 5.15.8:
Configured by aaron at Sat Feb 25 12:07:10 GMT 2012.
Summary of my perl5 (revision 5 version 15 subversion 8) configuration:
Commit id: 236cbe8d7a6747fb6144c93dd767895f8acffd00
Platform:
osname=linux, osvers=3.0.0-14-server, archname=x86_64-linux
uname='linux redacted 3.0.0-14-server #23~lucid1-ubuntu smp thu
dec 8 14:50:26 utc 201
1 x86_64 gnulinux '
config_args='-des -Dusedevel -Dprefix=/var/tmp/bleadperl'
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='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.4.3', 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='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib
/lib64 /usr/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.11.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.11.1'
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.15.8:
/var/tmp/bleadperl/lib/site_perl/5.15.8/x86_64-linux
/var/tmp/bleadperl/lib/site_perl/5.15.8
/var/tmp/bleadperl/lib/5.15.8/x86_64-linux
/var/tmp/bleadperl/lib/5.15.8
.
---
Environment for perl 5.15.8:
HOME=/home/aaron
LANG=en_GB.UTF-8
LANGUAGE (unset)
LC_COLLATE=C
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
--
Aaron Crane ** http://aaroncrane.co.uk/
-
[perl #111338] Warnings in utf8 subcategories do nothing in isolation
by Aaron Crane