[issue1754] WindowsError messages are not properly encoded
Romulo A. Ceccon
report at bugs.python.org
Thu May 6 03:51:57 CEST 2010
Romulo A. Ceccon <romuloceccon at gmail.com> added the comment:
> I think WindowsError's message should be English like other errors.
> FormatMessageW() function can take dwLanguageId parameter.
> So I think Python should pass `MAKELANGID(LANG_ENGLISH,
> SUBLANG_ENGLISH_US)` to the parameter.
On a non-english system FormatMessageW fails with ERROR_RESOURCE_LANG_NOT_FOUND (The specified resource language ID cannot be found in the image file) when called with that parameter.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1754>
_______________________________________
More information about the Python-bugs-list
mailing list