Message232863
> Is it safe to assume PyUnicode_AsUTF8() is null-terminated?
Yes, Python ensures that the string is null terminated.
> (like PyBytes_AS_STRING() is)
Yes, PyBytes_AS_STRING() also ends with a null byte.
By the way, Unicode strings internally ends with a null character. |
|
Date |
User |
Action |
Args |
2014-12-18 08:13:13 | vstinner | set | recipients:
+ vstinner, benjamin.peterson, r.david.murray, zbysz, docs@python, martin.panter |
2014-12-18 08:13:13 | vstinner | link | issue21071 messages |
2014-12-18 08:13:13 | vstinner | create | |
|