Issue 941229: Allow any encodings other than latin-1 in interactive interp (original) (raw)
Issue941229
This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/40184
classification
Title: | Allow any encodings other than latin-1 in interactive interp | ||
---|---|---|---|
Type: | Stage: | ||
Components: | Interpreter Core | Versions: | Python 2.4 |
process
Status: | closed | Resolution: | accepted |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | hyeshik.chang | Nosy List: | hyeshik.chang, loewis |
Priority: | normal | Keywords: | patch |
Created on 2004-04-24 09:49 by hyeshik.chang, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
interpencoding.diff | hyeshik.chang,2004-04-24 09:49 | The patch version 1 |
Messages (4) | ||
---|---|---|
msg45826 - (view) | Author: Hyeshik Chang (hyeshik.chang) * ![]() |
Date: 2004-04-24 09:49 |
Python interactive interpreter uses ISO-8859-1 for parsing incoming codes from sys.stdin whatever sys.stdin.encoding is. This patch allows to use locale-aware encodings other than ISO-8859-1 in interactive sessions. eg. Before: >>> u'\ ' # (U+D55C, U+AE00) u'\xc7\xd1\xb1\xdb' After: >>> u'\ ' u'\ud55c\uae00' The attached sample implementation fall backs to ISO-8859-1 for any non-memory errors such as UnicodeDecodeError. So if you use ascii or iso-8859-1, you'll not able to find difference. It intended to affect to non-latin-1 encoding users. | ||
msg45827 - (view) | Author: Hyeshik Chang (hyeshik.chang) * ![]() |
Date: 2004-08-02 06:53 |
Logged In: YES user_id=55188 I'd like to see some progression on this in upcoming 2.4a2. Can you please give some comment on this? :) | ||
msg45828 - (view) | Author: Martin v. Löwis (loewis) * ![]() |
Date: 2004-08-02 08:20 |
Logged In: YES user_id=21627 The patch is fine, please apply. You might consider removing the error check for PyString_AsString - that function cannot fail. | ||
msg45829 - (view) | Author: Hyeshik Chang (hyeshik.chang) * ![]() |
Date: 2004-08-04 17:37 |
Logged In: YES user_id=55188 Checked in/ Misc/NEWS 1.1069 Parser/tokenizer.c 2.76 Thanks for the review! |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:03 | admin | set | github: 40184 |
2004-04-24 09:49:52 | hyeshik.chang | create |