summaryrefslogtreecommitdiffstats
path: root/Include/py_curses.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-25 21:10:02 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-25 21:10:02 (GMT)
commit0fdfceb782424dcddca848357736f24ef40c91be (patch)
tree4accbe6422e2e28b0dc80d5b105c5da8f285bfcd /Include/py_curses.h
parentc24847658fb1e676391d3db1096219581cd2782c (diff)
downloadcpython-0fdfceb782424dcddca848357736f24ef40c91be.zip
cpython-0fdfceb782424dcddca848357736f24ef40c91be.tar.gz
cpython-0fdfceb782424dcddca848357736f24ef40c91be.tar.bz2
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.
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r--Include/py_curses.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h
index a891c42..f2c08f6 100644
--- a/Include/py_curses.h
+++ b/Include/py_curses.h
@@ -76,6 +76,7 @@ extern "C" {
typedef struct {
PyObject_HEAD
WINDOW *win;
+ char *encoding;
} PyCursesWindowObject;
#define PyCursesWindow_Check(v) (Py_TYPE(v) == &PyCursesWindow_Type)