Author Rhamphoryncus
Recipients Rhamphoryncus
Date 2008-06-09.23:28:49
SpamBayes Score 0.0962679
Marked as misclassified No
Message-id <1213054131.08.0.268305843949.issue3070@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-06-09 23:28:51Rhamphoryncussetspambayes_score: 0.0962679 -> 0.0962679
recipients: + Rhamphoryncus
2008-06-09 23:28:51Rhamphoryncussetspambayes_score: 0.0962679 -> 0.0962679
messageid: <1213054131.08.0.268305843949.issue3070@psf.upfronthosting.co.za>
2008-06-09 23:28:50Rhamphoryncuslinkissue3070 messages
2008-06-09 23:28:50Rhamphoryncuscreate