[issue1754] WindowsError messages are not properly encoded

Romulo A. Ceccon report at bugs.python.org
Mon Jan 7 17:21:45 CET 2008


Romulo A. Ceccon added the comment:

"... but the error message must be converted to str early (i.e when
building the Exception)."

Wouldn't that create more problems? What if somebody wants to intercept
the exception and do something with it, like, say, redirect it to a log
file? The programmer must, then, be aware of the different encoding. I
thought about keeping the exception message in Unicode and converting it
just before printing. Is that possible for Python 2.x?

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1754>
__________________________________


More information about the Python-bugs-list mailing list