From: Stefan Krah Date: Mon, 25 Apr 2016 23:56:50 +0000 (+0200) Subject: Issue #22747: Workaround for systems without langinfo.h. X-Git-Tag: v3.6.0a1~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=144da4ec850583c51e1c9cf55d8aaf20cdc7af5d;p=thirdparty%2FPython%2Fcpython.git Issue #22747: Workaround for systems without langinfo.h. --- diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 74bdb19d4392..7187fe448abe 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -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;