]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:54:47 +0000 (15:54 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2026 12:54:47 +0000 (12:54 +0000)
commit3871923d65c30cb8cd8306820a6f235547c0bcb4
treebc28be17bb5bfeaf57206d78d46088c2fb305e8f
parent233022d979da2e75acd76e591ae8e6f22b1f9c7a
[3.13] gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584) (GH-154605)

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: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_cmd_line.py