Bug 113746

Summary: Py_UNICODE and Tcl_UniChar differ in size
Product: [Fedora] Fedora Reporter: Mark Fassler <fassler>
Component: tclAssignee: Jens Petersen <petersen>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: mihai.ibanescu, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-05 13:09:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 100793    
Bug Blocks:    
Attachments:
Description Flags
Changes the datatype sizeof Tcl_UniChar
none
Tells the tcltk.spec file to pickup the new patch
none
currently disabled ucs4 patch for tcltk none

Description Mark Fassler 2004-01-17 00:25:13 UTC
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


How reproducible:

Run leo.  Fails 100% of the time.  


Steps to Reproduce:

Install and run "leo" (available from
http://sourceforge.net/projects/leo/ )

  
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;

becomes this:

  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
release...)

Comment 1 Mark Fassler 2004-01-17 00:29:05 UTC
Created attachment 97069 [details]
Changes the datatype sizeof Tcl_UniChar

(place into SOURCES dir)

Comment 2 Mark Fassler 2004-01-17 00:30:10 UTC
Created attachment 97070 [details]
Tells the tcltk.spec file to pickup the new patch

(patch the specfile with this patch)

Comment 3 Jens Petersen 2004-01-21 06:51:47 UTC
What about the flames for ucs4 RHL9 tcl got?

Comment 4 Jens Petersen 2004-01-21 06:54:45 UTC
As in bug 100793.

Comment 5 Jens Petersen 2004-01-21 07:17:28 UTC
Created attachment 97141 [details]
currently disabled ucs4 patch for tcltk

Comment 6 Jens Petersen 2004-05-13 03:22:45 UTC
Misa, I'm still confused about this?  How are we doing on this with FC2?

Comment 7 Jens Petersen 2004-07-30 07:19:40 UTC
Any better with 8.4 in FC2?

Comment 8 Mark Fassler 2004-08-03 19:23:51 UTC
Seems to work fine in FC2.

Comment 9 Jens Petersen 2004-08-05 13:09:10 UTC
Ok, thanks - I will close for now then. :)