summaryrefslogtreecommitdiffstats
path: root/Doc/library/curses.rst
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 /Doc/library/curses.rst
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 'Doc/library/curses.rst')
-rw-r--r--Doc/library/curses.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index d6a35c3..ff3a793 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -653,7 +653,7 @@ Window Objects
--------------
Window objects, as returned by :func:`initscr` and :func:`newwin` above, have
-the following methods:
+the following methods and attributes:
.. method:: window.addch([y, x,] ch[, attr])
@@ -834,6 +834,16 @@ the following methods:
event.
+.. attribute:: window.encoding
+
+ Encoding used to encode method arguments (Unicode strings and characters).
+ The encoding attribute is inherited from by parent window when a subwindow
+ is created, for example with :meth:`window.subwin`. By default, the locale
+ encoding is used (see :func:`locale.getpreferredencoding`).
+
+ .. versionadded:: 3.3
+
+
.. method:: window.erase()
Clear the window.