summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
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/whatsnew
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/whatsnew')
-rw-r--r--Doc/whatsnew/3.3.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 0a1d0a3..eb41cca 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -333,6 +333,11 @@ function to the :mod:`crypt` module.
curses
------
+ * If the :mod:`curses` module is linked to the ncursesw library, use Unicode
+ functions when Unicode strings or characters are passed (e.g.
+ :c:func:`waddwstr`), and bytes functions otherwise (e.g. :c:func:`waddstr`).
+ * Use the locale encoding instead of ``utf-8`` to encode Unicode strings.
+ * :class:`curses.window` has a new :attr:`curses.window.encoding` attribute.
* The :class:`curses.window` class has a new :meth:`~curses.window.get_wch`
method to get a wide character
* The :mod:`curses` module has a new :meth:`~curses.unget_wch` function to