Browse Source
bpo-42236: Enhance _locale._get_locale_encoding() (GH-23083)
bpo-42236: Enhance _locale._get_locale_encoding() (GH-23083)
* Rename _Py_GetLocaleEncoding() to _Py_GetLocaleEncodingObject() * Add _Py_GetLocaleEncoding() which returns a wchar_t* string to share code between _Py_GetLocaleEncodingObject() and config_get_locale_encoding(). * _Py_GetLocaleEncodingObject() now decodes nl_langinfo(CODESET) from the current locale encoding with surrogateescape, rather than using UTF-8.pull/23085/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 52 deletions
-
3Include/internal/pycore_fileutils.h
-
2Modules/_io/textio.c
-
2Modules/_localemodule.c
-
74Python/fileutils.c
-
47Python/initconfig.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue