Message103100
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2010年04月14日.00:01:33 |
| SpamBayes Score |
1.199851e-06 |
| Marked as misclassified |
No |
| Message-id |
<1271203298.02.0.466898460687.issue8391@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It would be nice to support the PEP 383 (surrogateescape) for environment variables in os.execvpe(). Attached patch uses PyUnicode_AsEncodedString(val, Py_FileSystemDefaultEncoding, "surrogateescape") to encode an environment variable value.
I'm not sure that PyUnicode_AsEncodedString(val, Py_FileSystemDefaultEncoding, "surrogateescape") does always return a PyBytes object.
I not patched environment keys, but it might be useful. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年04月14日 00:01:39 | vstinner | set | recipients:
+ vstinner |
| 2010年04月14日 00:01:38 | vstinner | set | messageid: <1271203298.02.0.466898460687.issue8391@psf.upfronthosting.co.za> |
| 2010年04月14日 00:01:36 | vstinner | link | issue8391 messages |
| 2010年04月14日 00:01:35 | vstinner | create |
|