[Patches] [ python-Patches-1061803 ] Source code encoding in IDLE console

SourceForge.net noreply at sourceforge.net
Sun Nov 7 11:20:51 CET 2004


Patches item #1061803, was opened at 2004-11-07 09:19
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1061803&group_id=5470

Category: IDLE
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Hye-Shik Chang (perky)
Assigned to: Nobody/Anonymous (nobody)
Summary: Source code encoding in IDLE console

Initial Comment:
Source code encoding is ignored in IDLE console
sessions currently.  To allow to use encodings other
than Latin-1, encoding marker must be added before
passing it to tokenizers. (see the attached patch)

current behavior:

>>> u'한글'
u'\xc7\xd1\xb1\xdb'

this must be like ...

>>> u'한글'
u'\ud55c\uae00'


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2004-11-07 11:20

Message:
Logged In: YES 
user_id=21627

I think the patch is wrong, as it messes with the source
code typed. At a minimum, line number will be off by one, no?

I'm currently working on a different solution, allowing
compile() to accept an encoding. However, it is too late to
add this to 2.4 now.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1061803&group_id=5470


More information about the Patches mailing list