Ryan Gonzalez added the comment:

Here:

diff -r 38f5b3beeb2a Python/pylifecycle.c
--- a/Python/pylifecycle.c Thu Mar 19 15:16:03 2015 -0500
+++ b/Python/pylifecycle.c Sat Apr 18 13:07:36 2015 -0500
@@ -217,6 +217,10 @@
     char codepage[100];
     PyOS_snprintf(codepage, sizeof(codepage), "cp%d", GetACP());
     return get_codec_name(codepage);
+#elif defined(__ANDROID__)
+    char* m = malloc(6);
+    strcpy(m, "ascii");
+    return m;
 #elif defined(HAVE_LANGINFO_H) && defined(CODESET)
     char* codeset = nl_langinfo(CODESET);
     if (!codeset || codeset[0] == '\0') {
@@ -224,10 +228,6 @@
         return NULL;
     }
     return get_codec_name(codeset);
-#elif defined(__ANDROID__)
-    char* m = malloc(6);
-    strcpy(m, "ascii");
-    return m;
 #else
     PyErr_SetNone(PyExc_NotImplementedError);
     return NULL;

On Sat, Apr 18, 2015 at 12:39 PM, Cyd Haselton <rep...@bugs.python.org>
wrote:

>
> Cyd Haselton added the comment:
>
> Do you have the time/means to create a quick patch for that?
>
> I ask because even a simple flip like that becomes a major pain when
> working with nano on a tablet.
>
> If not, I'll start on it. Just thought I"d ask
>
> ----------
>
> _______________________________________
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue23496>
> _______________________________________
>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23496>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to