[Python-checkins] cpython: Issue #22747: Workaround for systems without langinfo.h.

stefan.krah python-checkins at python.org
Mon Apr 25 19:57:18 EDT 2016


https://hg.python.org/cpython/rev/ad6be34ce8c9
changeset:   101146:ad6be34ce8c9
user:        Stefan Krah <skrah at bytereef.org>
date:        Tue Apr 26 01:56:50 2016 +0200
summary:
  Issue #22747: Workaround for systems without langinfo.h.

files:
  Python/pylifecycle.c |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -223,6 +223,8 @@
         return NULL;
     }
     return get_codec_name(codeset);
+#elif defined(__ANDROID__)
+    return get_codec_name("UTF-8");
 #else
     PyErr_SetNone(PyExc_NotImplementedError);
     return NULL;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list