Message240406
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>
>_______________________________________ |
|
Date |
User |
Action |
Args |
2015-04-10 01:10:22 | refi64 | set | recipients:
+ refi64, r.david.murray, freakboy3742, ethan.furman, chaselton |
2015-04-10 01:10:22 | refi64 | link | issue23496 messages |
2015-04-10 01:10:21 | refi64 | create | |
|