[Python-bugs-list] [ python-Bugs-780725 ] Compile error messages and PEP-263
SourceForge.net
noreply@sourceforge.net
Thu, 31 Jul 2003 02:11:29 -0700
Bugs item #780725, was opened at 2003-07-31 18:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=780725&group_id=5470
Category: Parser/Compiler
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: atsuo ishimoto (ishimoto)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compile error messages and PEP-263
Initial Comment:
If a source file contains encoding definition and it has
syntax errors,
Python prints line of source file in utf-8.
Here's simple example.
# -*- coding: Shift_JIS -*-
print "XXXXX" abcdefg # "XXXXX" is Japanese ShiftJIS
string.
With this source file, Python prints a second line as a
part of error
message in utf-8 encoding. Lines printed here should be
reconverted into
original encoding. Also, error column that '^' character
marks is wrong.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=780725&group_id=5470