[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC
Antoine Pitrou
report at bugs.python.org
Sat Aug 9 18:55:13 CEST 2008
Antoine Pitrou <pitrou at free.fr> added the comment:
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.
----------
nosy: +pitrou
priority: -> critical
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3362>
_______________________________________
More information about the Python-bugs-list
mailing list