You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=<Date2020-06-24.17:06:51.203>created_at=<Date2020-06-23.20:25:16.306>labels= ['interpreter-core', 'type-bug', '3.8', '3.9', '3.10']
title='Audit does not work with non-ASCII data on non-UTF-8 locale'updated_at=<Date2020-06-24.17:16:06.330>user='https://github.com/serhiy-storchaka'
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().