mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Return unicode for a key name from a wide character
This commit is contained in:
parent
c1786ea1dc
commit
9af3ae42f8
1 changed files with 2 additions and 2 deletions
|
@ -844,9 +844,9 @@ PyCursesWindow_GetKey(PyCursesWindowObject *self, PyObject *args)
|
||||||
return Py_BuildValue("c", rtn);
|
return Py_BuildValue("c", rtn);
|
||||||
else
|
else
|
||||||
#if defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
return PyString_FromString(unctrl(rtn));
|
return PyUnicode_FromString(unctrl(rtn));
|
||||||
#else
|
#else
|
||||||
return PyString_FromString((char *)keyname(rtn));
|
return PyUnicode_FromString((const char *)keyname(rtn));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue