mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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);
|
||||
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…
Add table
Add a link
Reference in a new issue