Front page | perl.perl5.porters |
Postings from January 2004
[perl #24926] chop/~ mangles UTF8
Thread Next
From:
perlbug-followup
Date:
January 16, 2004 23:24
Subject:
[perl #24926] chop/~ mangles UTF8
Message ID:
rt-3.0.8-24926-70084.1.32393823708504@perl.org
# New Ticket Created by nwc@faith.mccarroll.org.uk
# Please include the string: [perl #24926]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=24926 >
This is a bug report for perl from nick@ccl4.org,
generated with the help of perlbug 1.34 running under perl v5.8.3.
-----------------------------------------------------------------
[Please enter your report here]
perl5.8.3 -le '$a="\0\x{100}"; chop $a; print ord ~$a'
Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately after start byte 0xff) in ord at -e line 1.
0
Not that it's a new bug:
perl5.8.0 -le '$a="\0\x{100}"; chop $a; print ord ~$a'
Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately after start byte 0xff) in ord at -e line 1.
0
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.8.3:
Configured by nwc at Wed Jan 14 18:52:08 UTC 2004.
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
Platform:
osname=linux, osvers=2.4.20-gentoo-r5, archname=i686-linux
uname='linux faith 2.4.20-gentoo-r5 #1 thu jun 5 01:30:47 local time zone must be set--see zic manua i686 intel(r) pentium(r) 4 cpu 2.40ghz genuineintel gnulinux '
config_args='-Dprefix=/home/nwc/sandpit5.8.3/bin -des'
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='cc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O3',
cppflags='-fno-strict-aliasing'
ccversion='', gccversion='3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)', 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 =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.8.3:
/home/nwc/sandpit5.8.3/bin/lib/perl5/5.8.3/i686-linux
/home/nwc/sandpit5.8.3/bin/lib/perl5/5.8.3
/home/nwc/sandpit5.8.3/bin/lib/perl5/site_perl/5.8.3/i686-linux
/home/nwc/sandpit5.8.3/bin/lib/perl5/site_perl/5.8.3
/home/nwc/sandpit5.8.3/bin/lib/perl5/site_perl
.
---
Environment for perl v5.8.3:
HOME=/home/nwc
LANG (unset)
LANGUAGE (unset)
LC_CTYPE=en_GB.ISO-8859-1
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/nwc/bin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/games/bin:/sbin:/usr/sbin:/usr/local/sbin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #24926] chop/~ mangles UTF8
by perlbug-followup