Front page | perl.perl5.porters |
Postings from December 2016
[perl #130397] Unnecessary whitespace skipping inPerl__swash_to_invlist
Thread Previous
From:
Andy Lester
Date:
December 24, 2016 06:22
Subject:
[perl #130397] Unnecessary whitespace skipping inPerl__swash_to_invlist
Message ID:
rt-4.0.24-9855-1482560534-796.130397-75-0@perl.org
# New Ticket Created by Andy Lester
# Please include the string: [perl #130397]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=130397 >
This is a bug report for perl from andy@petdance.com,
generated with the help of perlbug 1.40 running under perl 5.24.0.
-----------------------------------------------------------------
[Please describe your issue here]
At line 4754 of utf8.c, in Perl__swash_to_invlist, I stumbled
across these two lines of code.
while (isSPACE(*l)) l++;
l = (U8 *) after_atou;
The first line is skipping whitespace, but it has no effect, because
the second line sets the value of l.
The immediately obvious thing to do would be to remove the first line,
but it makes me wonder how the code got to be like this, and if there
was supposed to be something else that happened here.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl 5.24.0:
Configured by andy at Sun Jun 5 23:28:46 CDT 2016.
Summary of my perl5 (revision 5 version 24 subversion 0) configuration:
Platform:
osname=linux, osvers=3.10.0-327.18.2.el7.x86_64, archname=x86_64-linux
uname='linux clifford 3.10.0-327.18.2.el7.x86_64 #1 smp thu may 12 11:03:55 utc 2016 x86_64 x86_64 x86_64 gnulinux '
config_args='-de -Dprefix=/home/andy/perl5/perlbrew/perls/perl-5.24.0 -Aeval:scriptdir=/home/andy/perl5/perlbrew/perls/perl-5.24.0/bin'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2',
optimize='-O2',
cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion='', gccversion='4.8.5 20150623 (Red Hat 4.8.5-4)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
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-strong -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.17.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.17'
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-strong'
Locally applied patches:
Devel::PatchPerl 1.38
---
@INC for perl 5.24.0:
/home/andy/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux
/home/andy/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0
/home/andy/perl5/perlbrew/perls/perl-5.24.0/lib/5.24.0/x86_64-linux
/home/andy/perl5/perlbrew/perls/perl-5.24.0/lib/5.24.0
.
---
Environment for perl 5.24.0:
HOME=/home/andy
LANG=en_US.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/andy/perl5/perlbrew/bin:/home/andy/perl5/perlbrew/perls/perl-5.24.0/bin:/home/andy/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
PERLBREW_BASHRC_VERSION=0.75
PERLBREW_HOME=/home/andy/.perlbrew
PERLBREW_MANPATH=/home/andy/perl5/perlbrew/perls/perl-5.24.0/man
PERLBREW_PATH=/home/andy/perl5/perlbrew/bin:/home/andy/perl5/perlbrew/perls/perl-5.24.0/bin
PERLBREW_PERL=perl-5.24.0
PERLBREW_ROOT=/home/andy/perl5/perlbrew
PERLBREW_VERSION=0.75
PERLCRITIC=/home/andy/tw/Dev/perlcriticrc
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Previous