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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue1754> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com