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 | Rhamphoryncus |
|---|---|
| Recipients | Rhamphoryncus |
| Date | 2008年06月09日.23:28:49 |
| SpamBayes Score | 0.09626788 |
| 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:51 | Rhamphoryncus | set | spambayes_score: 0.0962679 -> 0.09626788 recipients: + Rhamphoryncus |
| 2008年06月09日 23:28:51 | Rhamphoryncus | set | spambayes_score: 0.0962679 -> 0.0962679 messageid: <1213054131.08.0.268305843949.issue3070@psf.upfronthosting.co.za> |
| 2008年06月09日 23:28:50 | Rhamphoryncus | link | issue3070 messages |
| 2008年06月09日 23:28:50 | Rhamphoryncus | create | |