Return unicode for a key name from a wide character

This commit is contained in:
Neal Norwitz 2007-08-24 00:06:36 +00:00
parent c1786ea1dc
commit 9af3ae42f8
1 changed files with 2 additions and 2 deletions

View File

@ -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
}