Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Tk characters econdings on Wine

by marto (Archbishop)
on Feb 08, 2018 at 10:46 UTC ( #1208697=note: print w/replies, xml ) Need Help??


in reply to Tk characters econdings on Wine

If you Package your script on MacOS rather than use a compatibility layer such as Wine does it work as expected? I'd advise against your current approach, it only makes problems more difficult to debug. For example, is the error in your perl code, Tk or is it side effect of the compatibility layer?

Replies are listed 'Best First'.
Re^2: Tk characters econdings on Wine
by IB2017 (Scribe) on Feb 08, 2018 at 11:22 UTC

    Hi Marto. Thank you for your suggestion. However, the project is very big and packaging the script on MacOS is at the moment not an options (too many WIN32 modules, etc.). The approach works "actually" quite fine for any other aspects.

    • There is no error in my perl code. I tested it with a simple mainwindow with an entry field (packed as exe). Simple like that. As I wrote, I tried several tk applications from others, and they all have the same problem.
    • I suspect there is no bigger problem in the compatibility layer, as it works perfectly on any other (non perl/tk) application I tried. It is only with perl/tk that this appears
    • There must be some encoding issues in Tk (at least for this very particular situation), and it must have to do with some encodings. Unfortunately I do not have any clue on how to try to solve it.

      Thanks for the reply, for clarity, I wasn't suggesting that there actually was a problem with your perl code in this particular instance, just that the use of such compatibility layers will muddy the waters when it comes to trying to find the root cause of a problem. True, writing platform agnostic code is initially more work, but I would say it's easier to maintain in the long term.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1208697]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2018-08-16 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (167 votes). Check out past polls.

    Notices?