[issue13032] h2py.py can fail with UnicodeDecodeError

2019-07-30 Thread STINNER Victor
STINNER Victor added the comment: I just removed Tools/scripts/h2py.py in bpo-37704. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue13032] h2py.py can fail with UnicodeDecodeError

2019-07-29 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-37704 to propose to remove Tools/scripts/h2py.py. -- keywords: -easy ___ Python tracker ___ __

[issue13032] h2py.py can fail with UnicodeDecodeError

2012-05-02 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: UTF-8 is default encoding in Python 3, so statements with UTF-8 characters could be accepted. Any strings are very rare in these statements. On my system, only generated TYPES.py contains 2 strings: # Included from bits/select.h __FD_ZERO

[issue13032] h2py.py can fail with UnicodeDecodeError

2012-05-02 Thread Mike Gilbert
Changes by Mike Gilbert : -- nosy: +floppymaster ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-10-16 Thread STINNER Victor
STINNER Victor added the comment: Using your patch, h2py.py skips all statements that cannot be decoded from UTF-8, whereas unpatched h2py.py accepts all statements that can be decoded from the locale encoding. I don't know if it is intentional to accept non-ASCII statements. It is maybe safe

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-09-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-09-23 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : Tools/scripts/h2py.py fails with UnicodeDecodeError when a header file contains characters undecodable in current locale. I suggest to use binary mode. I'm attaching a patch. -- components: Demos and Tools files: h2py.py.patch