Front page | perl.perl5.porters |
Postings from June 2014
[perl #122151] pack/unpack should warn about redundant arguments
Thread Next
From:
̉ var Arnfj̦r̡ Bjarmason
Date:
June 21, 2014 20:45
Subject:
[perl #122151] pack/unpack should warn about redundant arguments
Message ID:
rt-4.0.18-27489-1403359585-1319.122151-75-0@perl.org
# New Ticket Created by Ãvar Arnfjörð Bjarmason
# Please include the string: [perl #122151]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=122151 >
This is a bug report for perl from avar@cpan.org,
generated with the help of perlbug 1.40 running under perl 5.21.2.
-----------------------------------------------------------------
[Please describe your issue here]
Similarly to https://rt.perl.org/Ticket/Display.html?id=121025 which
I've now implemented in
http://perl5.git.perl.org/perl.git/commitdiff/4077a6b the pack family
of functions don't warn about redundant arguments, but should:
$ perl -wE 'say pack "AA", qw(x y z)'
xy
$ perl -wE 'say pack "AAAA", qw(x y z)'
xyz
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=wishlist
---
Site configuration information for perl 5.21.2:
Configured by avar at Sat Jun 21 13:02:19 UTC 2014.
Summary of my perl5 (revision 5 version 21 subversion 2) configuration:
Local Commit: b1115217c095e04e8978853ee6f91dcaf13c3213
Ancestor: 0c60e3193cada7eee789f68009742a6f1c55c0ac
Platform:
osname=linux, osvers=3.2.0-4-amd64, archname=x86_64-linux-thread-multi
uname='linux u.nix.is 3.2.0-4-amd64 #1 smp debian 3.2.35-2 x86_64 gnulinux '
config_args='-DDEBUGGING=both -Doptimize=-ggdb3 -Dusethreads -Dprefix=/home/avar/perl5/installed -Dusedevel -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-ggdb3',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 Compatible Debian Clang 3.3 (branches/release_33)', 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 /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=libc-2.18.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.18'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -ggdb3 -L/usr/local/lib -fstack-protector'
Locally applied patches:
d1e978ede81bb0602bdb1f26093a7b58d245bcec
946bd120154b4b2b68a03ca473e15e5f03eb2ff6
---
@INC for perl 5.21.2:
lib
/home/avar/perl5/installed/lib/site_perl/5.21.2/x86_64-linux-thread-multi
/home/avar/perl5/installed/lib/site_perl/5.21.2
/home/avar/perl5/installed/lib/5.21.2/x86_64-linux-thread-multi
/home/avar/perl5/installed/lib/5.21.2
/home/avar/perl5/installed/lib/site_perl
.
---
Environment for perl 5.21.2:
HOME=/home/avar
LANG=en_US.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/avar/local/bin:/home/avar/perl5/installed/bin:/home/v-perlbrew/perl5/perlbrew/perls/perl-5.19.6/bin:/home/v-perlbrew/perl5/perlbrew/bin:/home/v-perlbrew/perl5/perlbrew/perls/current/bin:/home/avar/local/bin:/home/avar/g/misc-scripts:/home/avar/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
PERLDOC=-MPod::Text::Ansi
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #122151] pack/unpack should warn about redundant arguments
by ̉ var Arnfj̦r̡ Bjarmason