Commit 9af3ae42 authored by Neal Norwitz's avatar Neal Norwitz

Return unicode for a key name from a wide character

parent c1786ea1
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment