Issue #12567: The curses module uses Unicode functions for Unicode arguments

when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8.
This commit is contained in:
Victor Stinner 2011-11-25 22:10:02 +01:00
parent c24847658f
commit 0fdfceb782
6 changed files with 521 additions and 122 deletions

View file

@ -76,6 +76,7 @@ extern "C" {
typedef struct {
PyObject_HEAD
WINDOW *win;
char *encoding;
} PyCursesWindowObject;
#define PyCursesWindow_Check(v) (Py_TYPE(v) == &PyCursesWindow_Type)