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.
V
Victor Stinner committed
82458b6cdbae3b849dc11d0d7dc2ab06ef0451c4
Parent: 1f7dfb2
Committed by GitHub <noreply@github.com>
on 11/1/2020, 7:59:35 PM