[issue4742] 3.0 distutils byte-compiling -> Syntax error: unknown encoding: cp1252

John Machin report at bugs.python.org
Thu Dec 25 00:28:08 CET 2008


John Machin <sjmachin at users.sourceforge.net> added the comment:

A clue:

>>> print(ascii(b'\xa0\x93\x94\xb7'.decode('cp1252')))
'\xa0\u201c\u201d\xb7'

Could be that it only happens where there's a cp1252 character that's
not in latin1; see files x93.py and x94.py (have problem) and xa0b7.py
(doesn't have problem).

Added file: http://bugs.python.org/file12446/py3encbug2.zip

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


More information about the Python-bugs-list mailing list