Bug 113746 - Py_UNICODE and Tcl_UniChar differ in size
Summary: Py_UNICODE and Tcl_UniChar differ in size
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: tcl
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact:
URL:
Whiteboard:
Depends On: 100793
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-17 00:25 UTC by Mark Fassler
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-05 13:09:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Changes the datatype sizeof Tcl_UniChar (313 bytes, patch)
2004-01-17 00:29 UTC, Mark Fassler
no flags Details | Diff
Tells the tcltk.spec file to pickup the new patch (599 bytes, patch)
2004-01-17 00:30 UTC, Mark Fassler
no flags Details | Diff
currently disabled ucs4 patch for tcltk (1.30 KB, patch)
2004-01-21 07:17 UTC, Jens Petersen
no flags Details | Diff

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


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