cpython/Misc/NEWS.d/next/C API/2024-06-11-21-38-32.gh-issu...

5 lines
227 B
ReStructuredText

:c:func:`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.