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.
History
Date User Action Args
2015-04-18 16:59:39refi64setrecipients: + refi64, r.david.murray, freakboy3742, ethan.furman, chaselton
2015-04-18 16:59:39refi64setmessageid: <1429376379.57.0.267902753767.issue23496@psf.upfronthosting.co.za>
2015-04-18 16:59:39refi64linkissue23496 messages
2015-04-18 16:59:39refi64create