Message276797
| Author |
eryksun |
| Recipients |
eryksun |
| Date |
2016年09月17日.14:43:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1474123387.93.0.730915025745.issue28188@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This suggestion may be controversial: os.putenv should decode bytes arguments as UTF-8, the new Windows filesystem encoding. Moreover, os.environb should also be implemented. This would be consistent with bytes support in os.spawnve and os.execve.
The controversial aspect, I think, is that this doesn't allow using arbitrary encodings for environment-variable names and values. The statement in the docs that os.environb allows one "to use a different encoding" than the filesystem encoding would have to be modified with a caveat that on wide-character platforms, such as Windows, using the filesystem encoding is mandatory. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年09月17日 14:43:07 | eryksun | set | recipients:
+ eryksun |
| 2016年09月17日 14:43:07 | eryksun | set | messageid: <1474123387.93.0.730915025745.issue28188@psf.upfronthosting.co.za> |
| 2016年09月17日 14:43:07 | eryksun | link | issue28188 messages |
| 2016年09月17日 14:43:07 | eryksun | create |
|