This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, serhiy.storchaka, sobolevn, vstinner
Date 2021-09-04.07:08:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630739301.71.0.322188774126.issue45053@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-09-04 07:08:21serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, ezio.melotti, sobolevn
2021-09-04 07:08:21serhiy.storchakasetmessageid: <1630739301.71.0.322188774126.issue45053@roundup.psfhosted.org>
2021-09-04 07:08:21serhiy.storchakalinkissue45053 messages
2021-09-04 07:08:21serhiy.storchakacreate