消息 [104654]
STINNER Victor wrote:
>
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
>
>> No, you store the environment data as bytes and only
>> decode in getenv() ...
>
> Yes, this is the best solution for POSIX. We need maybe also a os.getenvb()->bytes function, maybe only on POSIX.
Yes, plus a os.setenvb() function to pass the data back to the C level
array.
> But I think that Windows should continue to use unicode environment variables. Should os.getenv(key, encoding=...) reencode the value on Windows?
Good idea. That would make applications more easily portable between
Windows and POSIX. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-04-30 17:48:26 | lemburg | 修改 | recipients:
+ lemburg, loewis, gregory.p.smith, vstinner, ezio.melotti, Arfrever |
| 2010-04-30 17:48:24 | lemburg | 链接 | issue8514 messages |
| 2010-04-30 17:48:24 | lemburg | 创建 | |
|