[issue14811] compile fails - UTF-8 character decoding

Serhiy Storchaka report at bugs.python.org
Tue May 15 12:40:21 CEST 2012


Serhiy Storchaka <storchaka at gmail.com> added the comment:

I can reproduce it on Linux. Minimal example:

$ ./python -c "open('longline.py', 'w').write('#' + repr('\u00A1' * 4096) + '\n')"
$ ./python longline.py
  File "longline.py", line 1
SyntaxError: Non-UTF-8 code starting with '\xc2' in file longline.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

----------
nosy: +storchaka

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


More information about the Python-bugs-list mailing list