➜

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.

作者 Rhamphoryncus
收信人 Rhamphoryncus
日期 2008-06-09.23:28:49
SpamBayes Score 0.09626788
Marked as misclassified 否
Message-id <1213054131.08.0.268305843949.issue3070@psf.upfronthosting.co.za>
In-reply-to
内容
In 2.x, the size of C string needed for an environment variable used by
posix_execve was calculated using PyString_GetSize.  In 3.0 this is
translated to PyUnicode_GetSize.  However, in 3.0 the C string is the
UTF-8 encoded version of the unicode object, which doesn't necessarily
have the same length as what PyUnicode_GetSize reports.

The simplest solution I see is to use strlen() instead.
历史
日期 用户 动作 参数
2008-06-09 23:28:51Rhamphoryncus修改spambayes_score: 0.0962679 -> 0.09626788
recipients: + Rhamphoryncus
2008-06-09 23:28:51Rhamphoryncus修改spambayes_score: 0.0962679 -> 0.0962679
messageid: <1213054131.08.0.268305843949.issue3070@psf.upfronthosting.co.za>
2008-06-09 23:28:50Rhamphoryncus链接issue3070 messages
2008-06-09 23:28:50Rhamphoryncus创建