diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-24 00:06:36 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-24 00:06:36 (GMT) |
commit | 9af3ae42f82071f9f0b780c88a9919e62854e750 (patch) | |
tree | c403b39d6cc1a7398efd2bcb0f3a43204e52ace1 /Modules/_cursesmodule.c | |
parent | c1786ea1dc2d04ff77f6e9293bdb89c555e637b6 (diff) | |
download | cpython-9af3ae42f82071f9f0b780c88a9919e62854e750.zip cpython-9af3ae42f82071f9f0b780c88a9919e62854e750.tar.gz cpython-9af3ae42f82071f9f0b780c88a9919e62854e750.tar.bz2 |
Return unicode for a key name from a wide character
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r-- | Modules/_cursesmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 971231a..659ebce 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -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 } |