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.

classification
标题: Make the default encoding provided on Windows
类型: Stage:
Components: Library (Lib) Versions: Python 2.3
process
状态: closed Resolution: accepted
Dependencies: 后续:
分配给: loewis 抄送列表: loewis, suzuki_hisao, tim.peters
优先级: normal 关键字: patch

Created on 2003-01-21 08:36 by suzuki_hisao, last changed 2022-04-10 16:06 by admin. This issue is now closed.

文件
文件名 上传时间 Description 编辑
site.py.diff suzuki_hisao, 2003-01-21 08:37
Messages (5)
msg42509 - (view) Author: SUZUKI Hisao (suzuki_hisao) 日期: 2003-01-21 08:36
On Windows, some default encodings are not
provided by Python (e.g. "cp932" in Japanese
locale), while they are always available as "mbcs"
in each locale.  This patch ensures them usable in
a very efficient way by aliasing them to "mbcs" in
such a case.

Note that IDLE does not start up on Windows unless
the default encoding is provided.  The patch makes
IDLE operable all over the (Windows) world ;-).
msg42510 - (view) Author: Martin v. Löwis (loewis) * (Python committer) 日期: 2003-01-21 22:04
Logged In: YES 
user_id=21627

I'm rejecting this patch. The factory system default
encoding of Python is ASCII, on all platforms (atleast, it
should be this way; MacOS currently deviates).

I cannot reproduce the IDLE problem; IDLE starts without
that patch just fine.
msg42511 - (view) Author: SUZUKI Hisao (suzuki_hisao) 日期: 2003-01-28 05:49
Logged In: YES 
user_id=495142

I can reproduce the IDLE problem on my Windows
2000 in Japanese locale.  I hope you will confirm it
by asking your  friends in Japan or other countries.

I am afraid you missed the point.  The patch does NOT change
the default encoding of Python itself.
It is ASCII still.  It only makes the encoding of
locale.getdefaultlocale()[1]  be PROVIDED.

Please read that short patch. 
msg42512 - (view) Author: Tim Peters (tim.peters) * (Python committer) 日期: 2003-02-21 02:10
Logged In: YES 
user_id=31435

Assigning to Martin, in the hopes they can work out their 
differences.
msg42513 - (view) Author: Martin v. Löwis (loewis) * (Python committer) 日期: 2003-03-03 09:45
Logged In: YES 
user_id=21627

I missed the point of this patch, indeed. Applied as site.py
1.48.
历史
日期 用户 动作 参数
2022-04-10 16:06:09admin修改github: 37810
2003-01-21 08:36:30suzuki_hisao创建