]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #22747: Workaround for systems without langinfo.h.
authorStefan Krah <skrah@bytereef.org>
Mon, 25 Apr 2016 23:56:50 +0000 (01:56 +0200)
committerStefan Krah <skrah@bytereef.org>
Mon, 25 Apr 2016 23:56:50 +0000 (01:56 +0200)
Python/pylifecycle.c

index 74bdb19d4392d9955a06b4a5e779de5c75df1b7e..7187fe448abec52d1be4d0958f6470666774d055 100644 (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;