Skip to content

gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales#154584

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:cmdline-invalid-utf8-arg-locale
Open

gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales#154584
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:cmdline-invalid-utf8-arg-locale

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Arbitrary bytes round-trip through surrogateescape only in UTF-8 and single-byte encodings, not in a stateful multibyte encoding such as EUC-JP. Skip the run_default and run_no_utf8_mode variants when their encoding is not lossless.

…ales

Arbitrary bytes round-trip through surrogateescape only in UTF-8 and
single-byte encodings, not in a stateful multibyte encoding such as EUC-JP.
Skip the run_default and run_no_utf8_mode variants when their encoding is
not lossless.

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 added the needs backport to 3.13 bugs and security fixes label Jul 24, 2026
@serhiy-storchaka serhiy-storchaka added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jul 24, 2026
@serhiy-storchaka
serhiy-storchaka requested a review from methane July 24, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant