[pypy-issue] [issue1762] Pypy 2.3 encoding validation
Armin Rigo
tracker at bugs.pypy.org
Sat May 10 21:21:22 CEST 2014
Armin Rigo <armin.rigo at gmail.com> added the comment:
Note that a similar issue was closed as invalid about comment lines that contain
null bytes, which CPython handles highly inconsistently.
This issue here is arguably more important, although I'm unsure how including
binary data in a .py file with a specific encoding is supposed to work. I guess
it works just because, by chance, the iso8859-1 encoding accepts any character
sequence. If you replaced "iso8859-1" with, say, "utf8", then the example gives
a SyntaxError on CPython and all versions of PyPy.
----------
nosy: +arigo
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1762>
________________________________________
More information about the pypy-issue
mailing list