]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151757: Fix curses wide-character tests in non-UTF-8 locales (GH-152062)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 24 Jun 2026 11:16:44 +0000 (14:16 +0300)
committerGitHub <noreply@github.com>
Wed, 24 Jun 2026 11:16:44 +0000 (11:16 +0000)
commit793f471767a1e80e8ae138e14efcf73f0233419e
tree4468f33b1dd2844764fcb20aa58fc7954c6b81c3
parent763cc2209d69bd0bf41cbb9bded5a48ee23ca6de
gh-151757: Fix curses wide-character tests in non-UTF-8 locales (GH-152062)

wcwidth() only classifies combining characters in a locale that can
encode them, so guard the wide-character test operations on encodability.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_curses.py