Skip to content

[3.14] gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584)#154604

Open
serhiy-storchaka wants to merge 1 commit into
python:3.14from
serhiy-storchaka:backport-b1e530e-3.14
Open

[3.14] gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584)#154604
serhiy-storchaka wants to merge 1 commit into
python:3.14from
serhiy-storchaka:backport-b1e530e-3.14

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member

(cherry picked from commit b1e530e)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…yte locales (pythonGH-154584)

Arbitrary bytes round-trip through surrogateescape only in UTF-8 and
single-byte encodings, not in a stateful multibyte encoding such as EUC-JP.
(cherry picked from commit b1e530e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant