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.

作者 vstinner
收信人 Arfrever, ezio.melotti, gregory.p.smith, lemburg, loewis, vstinner
日期 2010-04-30.17:16:06
SpamBayes Score 0.034250624
Marked as misclassified
Message-id <1272647767.62.0.263893496115.issue8514@psf.upfronthosting.co.za>
In-reply-to
内容
> 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.

But I think that Windows should continue to use unicode environment variables. Should os.getenv(key, encoding=...) reencode the value on Windows?
历史
日期 用户 动作 参数
2010-04-30 17:16:07vstinner修改recipients: + vstinner, lemburg, loewis, gregory.p.smith, ezio.melotti, Arfrever
2010-04-30 17:16:07vstinner修改messageid: <1272647767.62.0.263893496115.issue8514@psf.upfronthosting.co.za>
2010-04-30 17:16:06vstinner链接issue8514 messages
2010-04-30 17:16:06vstinner创建