prenaud has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I try to create an executable file for my Perl/Tk application on Windows with Strawberry Perl 5.22.

I installed the package PAR::Packer and used the pp.bat script to create the exe file.

My problem concerns the display of the Tk windows when the exe is launched : all the texts (labels, buttons, ...) appears with non-European characters !

When I launch the .pl file with the "perl" command, all the texts are correctly displayed.

Is it something special to add to create a correct exe file for a Tk application?

Replies are listed 'Best First'.
Re: [Win32] pp executable unicode problem
by marto (Cardinal) on Jun 12, 2015 at 14:12 UTC

    Can you post your pp command to show how you built the package (did you use the -x option?), also a small script which can reproduce this problem?

Re: [Win32] pp executable unicode problem
by dasgar (Priest) on Jun 12, 2015 at 15:07 UTC

    As marto pointed out, we would need to see some code and the pp command options that you used to create the executable in order to provide any useful suggestions.

    In the absence of more details, here's my guess as to what may be the issue. The pp utility tries to figure out which modules/libraries/etc that your code needs and bundles it into the executable. But sometimes it misses some items and you need to manually tell it to include the missing items.

    I suspect that something (probably unicode related) is getting missed by the pp utility. If you're not doing so already, I'd recommend using the -x and/or the -c options for pp, which will "determine additional run-time dependencies".

Re: [Win32] pp executable unicode problem (Tk)
by Anonymous Monk on Jun 13, 2015 at 00:40 UTC