Message241437
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 <report@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 <report@bugs.python.org>
> <http://bugs.python.org/issue23496>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2015-04-18 18:08:17 | refi64 | set | recipients:
+ refi64, r.david.murray, freakboy3742, ethan.furman, chaselton |
2015-04-18 18:08:17 | refi64 | link | issue23496 messages |
2015-04-18 18:08:17 | refi64 | create | |
|