Message70937
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. |
|
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 | |
|