]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Jul 2026 12:50:14 +0000 (14:50 +0200)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2026 12:50:14 +0000 (12:50 +0000)
commit3915f1e6c5215a676495aa7c8b3163bb210576f1
tree768e320716e24ff276d16b6957390049de6df249
parenta5d357c9dac21b2146f02ca4b13747eab09711b6
[3.15] gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584) (GH-154601)

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>
Lib/test/test_cmd_line.py