[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

STINNER Victor report at bugs.python.org
Tue Dec 15 10:03:37 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

My PR 23778 fix the encoding/error handler when writing the filename into stderr, when the file does not exist:

$ LANG= PYTHONCOERCECLOCALE=0 ./python -X utf8=0 héllo.py
./python: can't open file '/home/vstinner/python/master/h\udcc3\udca9llo.py': [Errno 2] No such file or directory

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32381>
_______________________________________


More information about the Python-bugs-list mailing list