[Python-bugs-list] [ python-Bugs-679880 ] 'compile' refuses BOM.

SourceForge.net noreply@sourceforge.net
Tue, 04 Feb 2003 13:24:23 -0800


Bugs item #679880, was opened at 2003-02-03 23:05
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=679880&group_id=5470

Category: Unicode
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Kirill Simonov (kirill_simonov)
Assigned to: Martin v. Löwis (loewis)
Summary: 'compile' refuses BOM.

Initial Comment:
The builtin 'compile' function refuses source files
with UTF-8 BOM marks.

For example,

$ python2.3 testutf8.py

works correctly, but

$ python2.3
>>> compile(open('testutf8.py').read(), 'testutf8.py',
'exec')

fails.



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

>Comment By: Kirill Simonov (kirill_simonov)
Date: 2003-02-04 21:24

Message:
Logged In: YES 
user_id=36553

I have uploaded a patch to fix this bug: #680474.
Hope somebody find time to apply it.

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

Comment By: M.-A. Lemburg (lemburg)
Date: 2003-02-04 09:18

Message:
Logged In: YES 
user_id=38388

No time for this. Assigning to Martin. Feel free to pass it on.

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

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