mirror of https://github.com/python/cpython
Return unicode for a key name from a wide character
This commit is contained in:
parent
c1786ea1dc
commit
9af3ae42f8
|
@ -844,9 +844,9 @@ PyCursesWindow_GetKey(PyCursesWindowObject *self, PyObject *args)
|
|||
return Py_BuildValue("c", rtn);
|
||||
else
|
||||
#if defined(__NetBSD__)
|
||||
return PyString_FromString(unctrl(rtn));
|
||||
return PyUnicode_FromString(unctrl(rtn));
|
||||
#else
|
||||
return PyString_FromString((char *)keyname(rtn));
|
||||
return PyUnicode_FromString((const char *)keyname(rtn));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue