SIGN IN SIGN UP

gh-70278: Fix PyUnicode_FromFormat() with precision for %s and %V (GH-120365)

PyUnicode_FromFormat() no longer produces the ending \ufffd
character for truncated C string when use precision with %s and %V.
It now truncates the string before the start of truncated multibyte sequences.
S
Serhiy Storchaka committed
6eb23b1311e7eebf2459076703460ee7f8044f05
Parent: 22b8a35
Committed by GitHub <noreply@github.com> on 6/24/2024, 3:07:07 PM