[issue2660] Py3k fails to parse a file with an iso-8859-1 string

Benjamin Peterson report at bugs.python.org
Mon Apr 27 04:39:30 CEST 2009


Benjamin Peterson <benjamin at python.org> added the comment:

The problem is that 2to3 just reads the file with whatever
locale.getpreferredencoding() returns. It should use
tokenize.detect_encoding() to discover the correct encoding to open it with.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2660>
_______________________________________


More information about the Python-bugs-list mailing list