Message241427
| Author |
refi64 |
| Recipients |
chaselton, ethan.furman, freakboy3742, r.david.murray, refi64 |
| Date |
2015年04月18日.16:59:39 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1429376379.57.0.267902753767.issue23496@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ok...try going to Python/pylifecycle.c and changing lines 220-230 from:
#elif defined(HAVE_LANGINFO_H) && defined(CODESET)
char* codeset = nl_langinfo(CODESET);
if (!codeset || codeset[0] == '0円') {
PyErr_SetString(PyExc_ValueError, "CODESET is not set or empty");
return NULL;
}
return get_codec_name(codeset);
#elif defined(__ANDROID__)
char* m = malloc(6);
strcpy(m, "ascii");
return m;
to:
#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円') {
PyErr_SetString(PyExc_ValueError, "CODESET is not set or empty");
return NULL;
}
return get_codec_name(codeset);
I just swapped the `elif`'s around. |
|