[issue3574] compile() cannot decode Latin-1 source encodings

STINNER Victor report at bugs.python.org
Sat Oct 4 02:19:39 CEST 2008


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Using py3k trunk + fix_latin.diff:
 - compile(b'# coding: latin-1\nu = "\xC7"\n', '<dummy>', 'exec') 
doesn't fail
 - test_pep3120.py is ok
 - but execute a ISO-8859-1 script fails: see attached iso.py

Original Python3:
$ python iso.py
'Bonjour ma ch\xe8re amie'

Patched Python3:
$ python iso.py
'Bonjour ma ch\xc3\xa8re amie'

----------
nosy: +haypo
Added file: http://bugs.python.org/file11697/iso.py

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


More information about the Python-bugs-list mailing list