Message70937
| 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:13 | pitrou | set | recipients:
+ pitrou, loewis, cfr |
| 2008年08月09日 16:55:13 | pitrou | set | messageid: <1218300913.16.0.887697233035.issue3362@psf.upfronthosting.co.za> |
| 2008年08月09日 16:54:03 | pitrou | link | issue3362 messages |
| 2008年08月09日 16:54:03 | pitrou | create |
|