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.

Author pitrou
Recipients cfr, loewis, pitrou
Date 2008-08-09.16:54:03
SpamBayes Score 0.02575329
Marked as misclassified No
Message-id <1218300913.16.0.887697233035.issue3362@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-08-09 16:55:13pitrousetrecipients: + pitrou, loewis, cfr
2008-08-09 16:55:13pitrousetmessageid: <1218300913.16.0.887697233035.issue3362@psf.upfronthosting.co.za>
2008-08-09 16:54:03pitroulinkissue3362 messages
2008-08-09 16:54:03pitroucreate