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 eryksun, ezio.melotti, minghua, paul.moore, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-09-21.09:53:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632217999.31.0.351602223585.issue45176@roundup.psfhosted.org>
In-reply-to
Content
Not only sys.executable. Sources of non-ASCII paths:

* sys.executable
* __file__ of the stdlib or test modules
* the current working directory
* the temporary directory

The last one is the most common in these failures.

Tests fail when a non-ASCII path is written to the stdout or a file with the default encoding (which differs from the filesystem encoding) and then read with implying:

* the ASCII encoding
* the UTF-8 encoding
* the filesystem encoding

Fixing tests is not enough, because it is often an issue of scripts which write paths to the stdout. This problem does not have simple and general solution.
History
Date User Action Args
2021-09-21 09:53:19serhiy.storchakasetrecipients: + serhiy.storchaka, paul.moore, vstinner, tim.golden, ezio.melotti, zach.ware, eryksun, steve.dower, minghua
2021-09-21 09:53:19serhiy.storchakasetmessageid: <1632217999.31.0.351602223585.issue45176@roundup.psfhosted.org>
2021-09-21 09:53:19serhiy.storchakalinkissue45176 messages
2021-09-21 09:53:19serhiy.storchakacreate