]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133031: Support the full Unicode range in curses.textpad.Textbox (GH-152482)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 28 Jun 2026 12:49:28 +0000 (15:49 +0300)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2026 12:49:28 +0000 (15:49 +0300)
commit499d31f52d22bb753fcafb3cbc6c7d712666cc8c
treefe74291fbba52f249f3a2087acac0519bb6f05d3
parent65585caa727458da3533d3a8bdc298d5620850e5
gh-133031: Support the full Unicode range in curses.textpad.Textbox (GH-152482)

Read input with get_wch() and the window back with in_wch(), so combining
characters and characters outside the locale encoding now work where curses has
wide-character support.

edit() passes non-ASCII characters to validate() as strings, keeping ASCII and
key codes as integers so existing validators keep working.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/curses.rst
Doc/whatsnew/3.16.rst
Lib/curses/textpad.py
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2026-06-27-12-45-00.gh-issue-133031.Wide00.rst [new file with mode: 0644]