From 144da4ec850583c51e1c9cf55d8aaf20cdc7af5d Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Tue, 26 Apr 2016 01:56:50 +0200 Subject: Issue #22747: Workaround for systems without langinfo.h. --- Python/pylifecycle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 74bdb19..7187fe4 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; -- cgit v0.12