Issue #22747: Workaround for systems without langinfo.h.

This commit is contained in:
Stefan Krah 2016-04-26 01:56:50 +02:00
parent 267b639a26
commit 144da4ec85
1 changed files with 2 additions and 0 deletions

View File

@ -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;