diff options
author | Stefan Krah <skrah@bytereef.org> | 2016-04-25 23:56:50 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2016-04-25 23:56:50 (GMT) |
commit | 144da4ec850583c51e1c9cf55d8aaf20cdc7af5d (patch) | |
tree | 5caf42bcbb5d6a0fcf85aa68abd50b957b187287 /Python | |
parent | 267b639a2655d283282813219730704a8d2743b7 (diff) | |
download | cpython-144da4ec850583c51e1c9cf55d8aaf20cdc7af5d.zip cpython-144da4ec850583c51e1c9cf55d8aaf20cdc7af5d.tar.gz cpython-144da4ec850583c51e1c9cf55d8aaf20cdc7af5d.tar.bz2 |
Issue #22747: Workaround for systems without langinfo.h.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pylifecycle.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |