SIGN IN SIGN UP

gh-111089: PyUnicode_AsUTF8() now raises on embedded NUL (#111091)

* PyUnicode_AsUTF8() now raises an exception if the string contains
  embedded null characters.
* Update related C API tests (test_capi.test_unicode).
* type_new_set_doc() uses PyUnicode_AsUTF8AndSize() to silently
  truncate doc containing null bytes.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
V
Victor Stinner committed
d731579bfb9a497cfb0076cb6b221058a20088fe
Parent: 59ea0f5
Committed by GitHub <noreply@github.com> on 10/20/2023, 3:59:29 PM