[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 Mike Gilbert
Changes by Mike Gilbert floppymas...@gmail.com: -- nosy: +floppymaster ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13032 ___ ___

[issue13032] h2py.py can fail with UnicodeDecodeError

2012-05-02 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com 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

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-10-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-09-23 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: 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

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-09-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13032 ___