Red Hat Bugzilla – Bug 113746
Py_UNICODE and Tcl_UniChar differ in size
Last modified: 2007-11-30 17:10:35 EST
Description of problem:
Some Python software that I've downloaded (a package called 'leo', not
from Red Hat) fails with the following error:
SystemError: Py_UNICODE and Tcl_UniChar differ in size
A little google-ing reveals that other people have had this problem,
bot with leo and with other software.
Version-Release number of selected component (if applicable):
Fedora Core 1, tcltk 8.3.5
Run leo. Fails 100% of the time.
Steps to Reproduce:
Install and run "leo" (available from
The problem can be fixed as follows:
get the "tcltk" and "python" SRPMS. In the tcltk source, find
"tcl.h". Change the datatype for Tcl_UniChar to be 32 bits, so this:
typedef unsigned short Tcl_UniChar;
typedef unsigned long Tcl_UniChar;
then rebuild the entire tcltk and python rpms.
(I don't know if this is a very *portable* way of fixing the problem,
but it works great for me with Linux on 32-bit Intel.)
Also note: word is that Python 2.3 and tcltk-8.4.5 fix the problem.
But it would be nice to have this simple backport to the current
Created attachment 97069 [details]
Changes the datatype sizeof Tcl_UniChar
(place into SOURCES dir)
Created attachment 97070 [details]
Tells the tcltk.spec file to pickup the new patch
(patch the specfile with this patch)
What about the flames for ucs4 RHL9 tcl got?
As in bug 100793.
Created attachment 97141 [details]
currently disabled ucs4 patch for tcltk
Misa, I'm still confused about this? How are we doing on this with FC2?
Any better with 8.4 in FC2?
Seems to work fine in FC2.
Ok, thanks - I will close for now then. :)