STINNER Victor <victor.stin...@gmail.com> added the comment: run_file() gets a wchar_t* string which comes from wmain() argv.
run_file() encodes the wchar_t* using PyUnicode_EncodeFSDefault(). Later, PyRun_SimpleFileExFlags() calls indirectly fopen() with the encoded filename. > This could be addressed in _Py_fopen by decoding the path and calling _wfopen > instead of fopen. I agree that it's the correct fix. I would make _Py_fopen() more compatible with the PEP 529. ---------- _______________________________________ 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