]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 24 Jul 2026 12:22:45 +0000 (15:22 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2026 12:22:45 +0000 (15:22 +0300)
commitb1e530ebf3b68e884ab37882d690d95e5d82aef5
treeb8f43b34a9537de0c1ce3f531111cb78dd50007b
parent41a087acc2d04c5bc3db93b5367456f05ae400a4
gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-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.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_cmd_line.py