Skip to content

gh-151757: Fix curses wide-character tests in non-UTF-8 locales#152062

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:curses-widechar-locale-fix
Jun 24, 2026
Merged

gh-151757: Fix curses wide-character tests in non-UTF-8 locales#152062
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:curses-widechar-locale-fix

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jun 24, 2026

Copy link
Copy Markdown
Member

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

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>
@serhiy-storchaka serhiy-storchaka added tests Tests in the Lib/test dir skip news labels Jun 24, 2026
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 24, 2026 10:48
@serhiy-storchaka serhiy-storchaka merged commit 793f471 into python:main Jun 24, 2026
54 checks passed
@serhiy-storchaka serhiy-storchaka deleted the curses-widechar-locale-fix branch July 1, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant