tkinter unicode bug (?) + fix

Tim Peters tim_one at email.msn.com
Wed Sep 20 02:00:11 CEST 2000


[Michael Pronath]
>  I linked tkinter together with Tcl & Tk 8.2.0 .
>  When using IDLE, the python interpreter segfaults as soon as I
>  enter a non-ASCII character, in _tkinter.c:267 when called from
>  _tkinter.c:1260.  It's that tkinter expects a string in AsString
>  where a unicode object is given.  This behavior was fixed after
>  changing line 1260
>
>   Tcl_SetResult(Tkapp_Interp(self), AsString(res, tmp), TCL_VOLATILE);
>
>  to
>
>   Tcl_SetObjResult(Tkapp_Interp(self), AsObj(res));

Michael, this sounds (to me, but I'm not a Tcl/Tk guy) similar to a bug
currently open at SourceForge:

http://sourceforge.net/bugs/?func=detailbug&bug_id=113803&group_id=5470

If you agree it sounds similar, it would help if you entered what you know
about it there.

c.l.py-is-a-black-hole-ly y'rs  - tim





More information about the Python-list mailing list