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 serhiy.storchaka, steve.dower, vstinner
Date 2020-06-23.20:25:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There are issues with using PySys_Audit() with non-ASCII data on non-UTF-8 locale.

One example is with PYTHONSTARTUP. In pymain_run_startup() in Modules/main.c the value of the PYTHONSTARTUP environment variable is passed to PySys_Audit() as UTF-8 encoded data. If it contains non-ASCII characters and the locale encoding is different from UTF-8, it fails.

There are similar bugs in _Py_fopen() and _Py_fopen_obj().
Date User Action Args
2020-06-23 20:25:16serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, steve.dower
2020-06-23 20:25:16serhiy.storchakasetmessageid: <>
2020-06-23 20:25:16serhiy.storchakalinkissue41094 messages
2020-06-23 20:25:16serhiy.storchakacreate