develooper Front page | perl.par | Postings from September 2018

[rt.cpan.org #127064] Question about weird pp executable behavior

Thread Next
From:
Roderich Schupp via RT
Date:
September 13, 2018 09:29
Subject:
[rt.cpan.org #127064] Question about weird pp executable behavior
Message ID:
rt-4.0.18-20492-1536830940-930.127064-15-0@rt.cpan.org
Thu Sep 13 05:28:59 2018: Request 127064 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: PAR-Packer
     Subject: Question about weird pp executable behavior 
   Broken in: (no value)
    Severity: (no value)
       Owner: RSCHUPP
  Requestors: cqu@factset.com
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=127064 >


Hi Chenchen,

I was able to reproduce the problem with PAR::Packer 1.037 by running 
the packed executable with environment variables TEMP and TMP set 
to a path that contains blanks, e.g.

set TEMP=C:\Users\SCHRO2~1\.cpanm\work\1536826253.8944\PAR-Packer-1.037\t m p

The test script was

pp -o foo.exe -E "use Data::Dumper; say 'ARGV = ', Dumper(\@ARGV);"

and running this in above environment produces

.\foo.exe 1 2 3
ARGV = $VAR1 = [
          'm',
          'p\\par-536368526f32342d657874\\cache-688422ed2d95d8d78309df7ba393ecec060a8455/foo.exe',
          '1',
          '2',
          '3'
        ];


The same script packed with PAR::Packer 1.047 works correctly in this environment.

Cheers, Roderich

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About