Message308831
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. |
|
Date |
User |
Action |
Args |
2017-12-20 22:35:02 | vstinner | set | recipients:
+ vstinner, paul.moore, tim.golden, ezio.melotti, zach.ware, eryksun, steve.dower, Tianjg, tianjg |
2017-12-20 22:35:02 | vstinner | set | messageid: <1513809302.29.0.213398074469.issue32381@psf.upfronthosting.co.za> |
2017-12-20 22:35:02 | vstinner | link | issue32381 messages |
2017-12-20 22:35:02 | vstinner | create | |
|