Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Odd encoding problem in Tk app when packaged with pp

by Anonymous Monk
on Jan 28, 2013 at 02:00 UTC ( #1015610=note: print w/ replies, xml ) Need Help??


in reply to Odd encoding problem in Tk app when packaged with pp

And here's the exe from the same script

What did you use to package it? Did you use -x?

Upgrade Tk/PAR and try again :

rt://PAR-Packer -> Bug #12032 for PAR-Packer: garbled characters in Tk

rt://Tk -> Bug #14754 for Tk: Tk::Text garbles accented characters

Bug #12475 for Tk: Tk 804.027 Enrty widget encoding problem (unicode)

Bug #5905 for Tk: Tk cann access files or folder with ascii-8 characters

  • Comment on Re: Odd encoding problem in Tk app when packaged with pp

Replies are listed 'Best First'.
Re^2: Odd encoding problem in Tk app when packaged with pp
by elef (Friar) on Jan 28, 2013 at 11:46 UTC
    Thank you for that.
    I did not use the -x switch because I assumed that if the .exe created launches and runs without any error messages, then it's fine.
    Anyway, I now ran pp with -x and the problem went away. I can't see this mentioned in the bug reports you linked, so I'm guessing you know this from personal experience...?
    I digged around in the .exe files generated by pp, and found that the MANIFEST files are different. Specifically, the one made with -x contains the following entries, which are missing from the one made without -x:
    lib/Encode/Byte.pm lib/auto/Encode/Byte/Byte.bs lib/auto/Encode/Byte/Byte.dll lib/sitecustomize.pl

    Obviously, this must be the explanation. I guess the lesson is to always use -x.

      Yes, this is why you had the initial problem, pp -x executes the code in an attempt to determine additional run time dependencies. This isn't a bug, it won't be in the reports mentioned, though it's documented in pp. See also PAR::FAQ and PAR::Tutorial.

      I can't see this mentioned in the bug reports you linked, so I'm guessing you know this from personal experience...?

      Yup, 99/100 PAR/pp questions are solved with -x, the rest are solved with -l, the rest are bugs :)

      I linked the first bug reports I could find, didn't seem important to check if they mention pp -x

        I linked the first bug reports I could find, didn't seem important to check if they mention pp -x

        Because , with older versions of Tk, pp -x won't help, so you need latest Tk and pp -x

        Perhaps pp should display a warning when it's run without -x along the lines of "Attention, running without -x may generate an executable that runs without error messages but does not function fully correctly. -x is always strongly recommended." It would cut down on questions and bug reports.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015610]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2016-07-31 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (269 votes). Check out past polls.