Author refi64
Recipients chaselton, ethan.furman, freakboy3742, r.david.murray, refi64
Date 2015-04-10.01:10:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <e899434a-f6f5-486a-8bdc-9456b8d3f241@email.android.com>
In-reply-to <1428627201.08.0.618318885381.issue23496@psf.upfronthosting.co.za>
Content
I think it was the same issue as before, but, for some reason, it didn't applu or something...? Will look into it tomorrow.

Cyd Haselton <report@bugs.python.org> wrote:
>
>Cyd Haselton added the comment:
>
>FYI, I think this is the culprit.
>In Python/pylifecycle.c:
>
>static char*
>get_codec_name(const char *encoding)
>{
>    char *name_utf8, *name_str;
>    PyObject *codec, *name = NULL;
>
>    codec = _PyCodec_Lookup(encoding);
>    if (!codec)
>        goto error;
>
>    name = _PyObject_GetAttrId(codec, &PyId_name);
>    Py_CLEAR(codec);
>    if (!name)
>        goto error;
>
>    name_utf8 = _PyUnicode_AsString(name);
>    if (name_utf8 == NULL)
>        goto error;
>    name_str = _PyMem_RawStrdup(name_utf8);
>    Py_DECREF(name);
>    if (name_str == NULL) {
>        PyErr_NoMemory();
>        return NULL;
>    }
>    return name_str;
>
>error:
>    Py_XDECREF(codec);
>    Py_XDECREF(name);
>    return NULL;
>}
>
>If I figure out a working patch I'll post it here
>
>----------
>
>_______________________________________
>Python tracker <report@bugs.python.org>
><http://bugs.python.org/issue23496>
>_______________________________________
History
Date User Action Args
2015-04-10 01:10:22refi64setrecipients: + refi64, r.david.murray, freakboy3742, ethan.furman, chaselton
2015-04-10 01:10:22refi64linkissue23496 messages
2015-04-10 01:10:21refi64create