in reply to Re^5: Chinese font problem in Perl/Tk
in thread Chinese fonts problem in Perl/Tk

Did you tried my example that I give in parallel post?? Do you receive same screenshot as mine? (to run, you need save my code as file, run 'wish' on it, and you should see mine screenshot)

I saved the sample code to tksample.tk and simply ran "wish tksample.tk".

On Solaris 8, this didn't work for me. It displayed the 6 lines between the quotes verbatim without any translation. Did I overlook something?

Regarding the widget demos that had the Unicode text demo, they were run on each OS using the respective Activeperl 5.8.4 for each OS. There shouldn't be any Solaris/Linux incompatibility problems running widget.

Replies are listed 'Best First'.
Re^7: Chinese font problem in Perl/Tk
by Courage (Parson) on Jan 07, 2005 at 21:06 UTC
      Hmm ... that's both encouraging and disheartening.

      Encouraging that this may be a localized (phantom?) problem.

      Disheartening in that my application's going on a couple thousand Redhat Linux and Solaris boxes in different locales and I'd hate to have to tell the SA's they've got a problem.

      Still, I can't believe only the Solaris 2.6, Solaris 8, and Linux boxes I'm working on have the same problem.

      Guess I can try ActivePerl 5.8.6 instead of 5.8.4.

      Thanks for checking, Courage.
        there could be some bugs fixed afterwards...

        perlTk bugs are harder to fix than with perl+Tcl/Tk (my own experience)

        Best regards,
        Courage, the Cowardly Dog

      No-go with ActivePerl 5.8.6 on Redhat Linux, Solaris 8, nor Solaris 2.6 for me.

      Same as with 5.8.4, some characters displayed codes instead of the character.

      "uname -srv" for Redhat Linux: Linux 2.4.18-24.7.x_3.5G #1 Mon Jul 26 13:49:55 CDT 2004
      "uname -srv" for Solaris 8: SunOS 5.8 Generic_108528-14
      "uname -srv" for Solaris 6: SunOS 5.6 Generic_105181-33
        Hmmm.

        I can't reproduce.
        But I can beleive you fall to some kind of configuration problems... may be your OS installations lack some internationalizatio(18)n setting? something with underlying C library (as usual, many perl bugs refer to underlying C lib)

        as zentara said you need to post it as bug report, I beleive to bug tracking system. PerlTk mailing lists also wait for your posting :)

        Once again, try running my code of pure-Tk (under "wish") and give me a screenshot on your system(s)...
        We should start digging from here

        In case putting screenshots is pain for you, I can provide you with proper place to put.

        Best regards,
        Courage, the Cowardly Dog

Re^7: Chinese font problem in Perl/Tk
by Courage (Parson) on Jan 07, 2005 at 20:30 UTC
    Please check those are double quites and not single quotes. BTW did that program created 'text' widget? And it filled it with \uBLABAL stuff?

    Also which version of Tcl/tk are you running (those with 'wish' executable)

    Okay, now I'll download Activestate's latest perl for Linux, so will see what your program will look like...

    Best regards,
    Courage, the Cowardly Dog

      I've not done tcl/tk at all. They were double-quotes and not single-quotes (just did a copy/paste). I didn't see any widgets. How would I see what version (if any) of Tcl/tk I have? Any demos (like perl's widget) bundled with Tcl/tk to try out?
        'wish' is part of Tcl/Tk, you probably have it installed.

        IMHO Perl+Tcl/Tk (via Tcl::Tk) far better than Perl+Tk

        Best regards,
        Courage, the Cowardly Dog