I sent the response below to Autrijus yesterday, but forgot to CC the par list. I'd be very grateful if someone else using PAR under perl 5.8.1 or 5.8.2 could try the simple test that's described below to verify the existence of this problem.
Thanks!
Tom Pollard
-------------------------------- forwarded message ---------------------------------
On Dec 13, 2003, at 4:07 PM, Autrijus Tang wrote:
Hi. This distinctly sounds like a serious, already-confirmed in perl 5.8.1 problem, which as been corrected by 5.8.2. Can you try it in a 5.8.2 installation and see if it still occurs?
It looks like the problem is still there in Perl 5.8.2. My colleague, Mark Reboul, did a fresh build of Perl 5.8.2, PAR 0.76 and the various module PAR requires:
Archive-Zip-1.08 (not 1.09, which has the signature problem) Compress-Zlib-1.32 Digest-1.05 Digest-SHA1-2.07 Module-ScanDeps-0.32 Module-Signature-0.37 PAR-Dist-0.06
(The 'perl -V' config info is appended below, in case it helps.)
The problem I reported earlier is reproduced. It looks like there's still a real bug there somewhere.
Thanks for looking at this.
Tom Pollard
PS: Here's how Mark reproduces the problem...
#!/usr/bin/perl -w print "Args = \"@ARGV\"\n";
That's it; two lines. I packaged it this way --
pp -o demo demo.pl
If I enter this command --
demo -v
the result should be this --
Args = "-v"
I find that if I do the following --
unset LC_ALL unset LC_CTYPE demo -v
the result is correct. If however I do these --
unset LC_ALL export LC_CTYPE=C demo -v
the result is this --
Args = ""
which is wrong.
PPS: Here's the 'perl -V' output...
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
Platform:
osname=linux, osvers=2.4.18-17.7.x, archname=i686-linux
uname='linux brooke 2.4.18-17.7.x #1 tue oct 8 13:33:14 edt 2002 i686 unknown '
config_args='-Dprefix=/zone1/reboul/brooke -de'
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 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.3 2.96-110)', 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 -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Dec 16 2003 11:16:27 @INC: /zone1/reboul/brooke/lib/perl5/5.8.2/i686-linux /zone1/reboul/brooke/lib/perl5/5.8.2 /zone1/reboul/brooke/lib/perl5/site_perl/5.8.2/i686-linux /zone1/reboul/brooke/lib/perl5/site_perl/5.8.2 /zone1/reboul/brooke/lib/perl5/site_perl .