STINNER Victor <[EMAIL PROTECTED]> added the comment:
By setting lineto to 1 (as proposed ocean-city), ASCII tests (test1
and test2, see below) works correctly. This change doesn't impact
utf-8/iso-8859-1 charset (it's special case).
--- test1 ---
# coding: ASCII
raise Exception("here")
-------------
--- test2 ---
# useless at line 1
# coding: ASCII
raise Exception("here")
-------------
I don't know how to test a UTF-16 file. Can someone write a testcase?
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2384>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com