diff options
author | Inada Naoki <songofacandy@gmail.com> | 2022-04-22 01:39:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 01:39:24 (GMT) |
commit | 1317b70f89606bd14597116b7ab68a968ea6c017 (patch) | |
tree | 84cefd08afe31ffeb3f7a1f7ad1c9d2688abb168 /Doc/howto | |
parent | efe7fd4170bb809ed46cac35c6a9007d5b794e7e (diff) | |
download | cpython-1317b70f89606bd14597116b7ab68a968ea6c017.zip cpython-1317b70f89606bd14597116b7ab68a968ea6c017.tar.gz cpython-1317b70f89606bd14597116b7ab68a968ea6c017.tar.bz2 |
gh-91156: Use `locale.getencoding()` instead of getpreferredencoding (GH-91732)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/curses.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst index c0149ff..26c4ece 100644 --- a/Doc/howto/curses.rst +++ b/Doc/howto/curses.rst @@ -299,8 +299,7 @@ The :meth:`~curses.window.addstr` method takes a Python string or bytestring as the value to be displayed. The contents of bytestrings are sent to the terminal as-is. Strings are encoded to bytes using the value of the window's :attr:`encoding` attribute; this defaults to -the default system encoding as returned by -:func:`locale.getpreferredencoding`. +the default system encoding as returned by :func:`locale.getencoding`. The :meth:`~curses.window.addch` methods take a character, which can be either a string of length 1, a bytestring of length 1, or an integer. |