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
Title: source utf8
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: doerwalter, ibear, nnorwitz
Priority: normal Keywords:

Created on 2005-12-11 06:48 by ibear, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test.py ibear, 2005-12-11 06:48 test.py
pythonrun.diff doerwalter, 2005-12-12 14:35
Messages (5)
msg27038 - (view) Author: zhao (ibear) Date: 2005-12-11 06:48
winxp sp2(chinese or japanese) and python 2.42

i have created a utf8 source file with BOM_UTF8

if i add a '#coding: utf8' at first line and run it,
the python interpreter will crash
msg27039 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-12-12 14:35
Logged In: YES 
user_id=89016

The following patch (pythonrun.diff) should fix the
segfault. However UTF-8 files with a leading BOM currently
aren't supported. There's a pending patch
(http://bugs.python.org/1177307) that adds a utf-8-sig codec
for that.
msg27040 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-12-18 05:29
Logged In: YES 
user_id=33168

Thank you for the bug report.

Committed revision 41753.
msg27041 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-12-18 06:03
Logged In: YES 
user_id=33168

Thank you for the bug report.

Committed revision 41753.
msg27042 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-02-21 09:20
Logged In: YES 
user_id=33168

Committed revision 42537. (2.4)
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42678
2005-12-11 06:48:03ibearcreate