Message401038
It will not work in all cases. For example if the stdio encoding is UTF-8 and the filesystem encoding is Latin1. Or the stdio encoding is CP1251 and the filesystem encoding is UTF-8. I am not also sure that it gives us the result which we want if it doesn't fail.
It is a general and complex issue, and every program which writes file names to stdout is affected.
For now I suggest just use TESTFN_ASCII instead of TESTFN. We will find better solution in future. I hesitate about merging PR 28060 because it can fail also on some non-Windows buildbots with uncommon locale settings. |
|
Date |
User |
Action |
Args |
2021-09-04 07:08:21 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, ezio.melotti, sobolevn |
2021-09-04 07:08:21 | serhiy.storchaka | set | messageid: <1630739301.71.0.322188774126.issue45053@roundup.psfhosted.org> |
2021-09-04 07:08:21 | serhiy.storchaka | link | issue45053 messages |
2021-09-04 07:08:21 | serhiy.storchaka | create | |
|