Skip to content

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

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-b1e530e-3.15
Jul 24, 2026
Merged

[3.15] gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584)#154601
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-b1e530e-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

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

…ales (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 b1e530ebf3b68e884ab37882d690d95e5d82aef5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 24, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 24, 2026 12:23
@serhiy-storchaka
serhiy-storchaka merged commit 3915f1e into python:3.15 Jul 24, 2026
56 checks passed
@miss-islington
miss-islington deleted the backport-b1e530e-3.15 branch July 24, 2026 12:50
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.

2 participants