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.
Created on 2008年06月09日 23:28 by Rhamphoryncus, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg67880 - (view) | Author: Adam Olsen (Rhamphoryncus) | Date: 2008年06月09日 23:28 | |
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. |
|||
| msg109895 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2010年07月10日 17:08 | |
Any core C developers have any input on this one? |
|||
| msg109902 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2010年07月10日 17:43 | |
Yes, I fixed it in 3.1 (r80494) and 3.2 (r80421): see issue #8391. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:35 | admin | set | github: 47320 |
| 2010年07月10日 17:43:55 | vstinner | set | status: open -> closed resolution: fixed messages: + msg109902 |
| 2010年07月10日 17:08:46 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg109895 versions: + Python 3.2 |
| 2009年05月13日 22:34:38 | ajaksu2 | set | versions:
+ Python 3.1, - Python 3.0 nosy: + loewis, vstinner priority: normal type: behavior stage: test needed |
| 2008年06月09日 23:28:50 | Rhamphoryncus | create | |