This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients alexandre.vassalotti, bhy, lemburg, loewis
Date 2008-06-05.20:50:08
SpamBayes Score 0.008262365
Marked as misclassified No
Message-id <4848517E.4060701@v.loewis.de>
In-reply-to <48485068.3030700@egenix.com>
Content
> How about PyUnicode_GetUTF8Buffer() or just PyUnicode_UTF8() ?!

-1

> Note that the function *must* check the UTF-8 buffer for embedded
> NUL bytes and then raise an exception if it finds one. Otherwise,
> the API would silently cause truncations.

PyString_AsString doesn't check for null bytes, either, and will also
silently truncate. This has never been a problem, so I fail to see why
it is a problem for Unicode strings.
History
Date User Action Args
2008-06-05 20:50:09loewissetspambayes_score: 0.00826237 -> 0.008262365
recipients: + loewis, lemburg, alexandre.vassalotti, bhy
2008-06-05 20:50:08loewislinkissue2799 messages
2008-06-05 20:50:08loewiscreate