From 9af3ae42f82071f9f0b780c88a9919e62854e750 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 24 Aug 2007 00:06:36 +0000 Subject: Return unicode for a key name from a wide character --- Modules/_cursesmodule.c | 4 ++-- 1 file 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 } -- cgit v0.12