New submission from Amaury Forgeot d'Arc: os.stat("nonexistent") raises a UnicodeDecodeError on German, Polish and French Windowses. The reason: Windows returns an error message which contains accented letters encoded as MBCS, but python decodes it with utf-8. This patch uses the Unicode version of FormatMessageW to get the unicode string directly.
---------- files: errors.diff messages: 55539 nosy: amaury.forgeotdarc severity: normal status: open title: py3k: Unicode error in os.stat on Windows __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1075> __________________________________
errors.diff
Description: Binary data
_______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com