develooper Front page | perl.perl5.porters | Postings from April 2000

problems with perlcc under Win32

From:
john.dlugosz
Date:
April 20, 2000 12:52
Subject:
problems with perlcc under Win32
Message ID:
852568C7.006CCFD6.00@knotes.kodak.com


From: John Dlugosz

Problem 1, a true bug:

The temp directory name is fetched containing a backslash character.  This
gets interpolated into a temp script, and generates the incorrect name when
the script is then processed.

The fix:

Add this line to _getSharedObjects

        my $tempdir= File::Spec->tmpdir;
        $tempdir =~ tr[\\][/];      # backslash not handled right.
             This line added

Problem 2, arguably a defect

Filenames with spaces in them fail miserably.  The name in ^X and the
filename are simple enough to add quotes around, but the @INC value needs
more processing.  The former is easy to fix, the latter I've not poked into
yet.





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