STINNER Victor <vstin...@python.org> added the comment:
+ Py_UCS4 fill_char = PyUnicode_READ(char_size, PyUnicode_DATA(str), 0); + memset(to, fill_char, len); The second parameter of memset() is a byte (8-bit "octet"). You cannot pass Py_UCS4 to memset(), it doesn't work. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42593> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com