STINNER Victor <vstin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32381> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com