[Patches] [ python-Patches-520483 ] Make IDLE OutputWindow handle Unicode
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 20 Feb 2002 14:56:21 -0800
Patches item #520483, was opened at 2002-02-20 06:58
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=520483&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason Orendorff (jorend)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make IDLE OutputWindow handle Unicode
Initial Comment:
This one-line patch makes OutputWindow handle
Unicode correctly. For example,
>>> print u'\xbfQu\xe9 pas\xf3?'
In 2.2 this throws a UnicodeError,
not because of any problem with Unicode
handling in either Python or Tk, but
because IDLE does str(s) on the Unicode
string.
I just took out the call to str().
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2002-02-20 14:56
Message:
Logged In: YES
user_id=21627
Isn't this too simplistic? I guess there was a reason for
the str call: could it ever happen that somebody passes
something else (beyond byte and Unicode strings)?
Also, I wonder whether IDLE patches need to go to idlefork
(sf.net/projects/idlefork) first.
Apart from this comments, I think your patch is quite right.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=520483&group_id=5470