mirror of https://github.com/python/cpython
Issue #22747: Workaround for systems without langinfo.h.
This commit is contained in:
parent
267b639a26
commit
144da4ec85
|
@ -223,6 +223,8 @@ get_locale_encoding(void)
|
|||
return NULL;
|
||||
}
|
||||
return get_codec_name(codeset);
|
||||
#elif defined(__ANDROID__)
|
||||
return get_codec_name("UTF-8");
|
||||
#else
|
||||
PyErr_SetNone(PyExc_NotImplementedError);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue