[issue1754] WindowsError messages are not properly encoded
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Jan 7 19:18:54 CET 2008
Amaury Forgeot d'Arc added the comment:
I think this is not possible if we want to preserve compatibility; at
least, str(e.strerror) must not fail.
I can see different solutions:
1) Don't fix, and upgrade to python 3.0
2) Store an additional e.unicodeerror member, use it in a new
EnvironmentError.__unicode__ method, and call this from PyErr_Display.
3) Force FormatMessage to return US-English messages.
My preferred being 1): python2.5 is mostly encoding-naive, python3 is
unicode aware, and I am not sure we want python2.6 contain both code.
Other opinions?
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1754>
__________________________________
More information about the Python-bugs-list
mailing list