Bug 89098 - Tk/Tcl handling of UTF-8 appears broken
Tk/Tcl handling of UTF-8 appears broken
Product: Red Hat Linux
Classification: Retired
Component: tcltk (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
Bill Huang
Depends On:
Blocks: 89110
  Show dependency treegraph
Reported: 2003-04-17 12:47 EDT by Michael Fulbright
Modified: 2007-04-18 12:53 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-02-26 02:25:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Sample program to trigger utf-8 issue (405 bytes, text/plain)
2003-04-17 12:48 EDT, Michael Fulbright
no flags Details
Tkinter equivalent? to utf-8.wish (364 bytes, application/octet-stream)
2003-07-04 17:51 EDT, Jens Petersen
no flags Details

  None (edit)
Description Michael Fulbright 2003-04-17 12:47:40 EDT
The attached program runs fine on a Red Hat Linux 8 system, but displays a
mixture of characters and square boxes on Shrike.
Comment 1 Michael Fulbright 2003-04-17 12:48:25 EDT
Created attachment 91178 [details]
Sample program to trigger utf-8 issue
Comment 2 Jens Petersen 2003-06-17 22:39:26 EDT
Reproduced.  Wonder if this is related to the move to ucs4 for python.
Comment 3 Jens Petersen 2003-06-17 22:50:49 EDT
Indeed it is.  Removing tcltk-8.3.5-ucs4-for-py.patch, it displays just fine.

Misa, do you have any utf-8 test-cases for tkinter?
Comment 4 Jens Petersen 2003-07-04 17:38:50 EDT
In tcltk-8.3.5-90 I have disabled the ucs4 patch for now, since it seems
to be breaking utf-8 support.  But this is probably not the final
solution.  At least now "utf-8.wish" displays ok again, though the
equivalent(?) Tkinter python script does not.
Comment 5 Jens Petersen 2003-07-04 17:51:27 EDT
Created attachment 92758 [details]
Tkinter equivalent? to utf-8.wish

Actually this script doesn't seem to display correctly with
or without the patch.  What is the right way to do this with
python and Tkinter?
Comment 6 Mihai Ibanescu 2004-04-16 17:45:13 EDT

... text=u'...'

instead of

... text='...'

Works on my FC2 box

Note You need to log in before you can comment on or make changes to this bug.