Message270648
Parsing the argument is also broken:
static PyObject *
msvcrt_ungetwch(PyObject *self, PyObject *args)
{
Py_UNICODE ch;
if (!PyArg_ParseTuple(args, "u:ungetwch", &ch))
return NULL;
if (_ungetch(ch) == EOF)
return PyErr_SetFromErrno(PyExc_IOError);
Py_INCREF(Py_None);
return Py_None;
}
Format "u" is a `Py_UNICODE *`. There's no "C" format code in 2.x, so it will first have to check that the string length is exactly 1 and then use index 0. |
|
Date |
User |
Action |
Args |
2016-07-17 15:50:26 | eryksun | set | recipients:
+ eryksun, arigo, paul.moore, tim.golden, zach.ware, steve.dower |
2016-07-17 15:50:26 | eryksun | set | messageid: <1468770626.71.0.512017465865.issue27540@psf.upfronthosting.co.za> |
2016-07-17 15:50:26 | eryksun | link | issue27540 messages |
2016-07-17 15:50:26 | eryksun | create | |
|