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.

作者 pitrou
收信人 cfr, loewis, pitrou
日期 2008-08-09.16:54:03
SpamBayes Score 0.02575329
Marked as misclassified
Message-id <1218300913.16.0.887697233035.issue3362@psf.upfronthosting.co.za>
In-reply-to
内容
locale.getpreferredencoding() should certainly not crash but the
question remains of what should be the outcome. I can see several
possibilities:
(1) return the empty string
(2) return None
(3) return "ascii" (!!)
(4) raise an exception (which one?)

(2) sounds the most logical to me, there is no preferred encoding in the
environment so we just return None to indicate that the application has
to choose its own default.
历史
日期 用户 动作 参数
2008-08-09 16:55:13pitrou修改recipients: + pitrou, loewis, cfr
2008-08-09 16:55:13pitrou修改messageid: <1218300913.16.0.887697233035.issue3362@psf.upfronthosting.co.za>
2008-08-09 16:54:03pitrou链接issue3362 messages
2008-08-09 16:54:03pitrou创建