[issue1075] py3k: Unicode error in os.stat on Windows

2007-09-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: I could not quite reproduce this on the German version (the error text reads " Das System kann die angegebene Datei nicht finden" on XP), however, the patch looks good and it fixes the same problem for the registry functions (where I get "Das Handle ist ungültig

[issue1075] py3k: Unicode error in os.stat on Windows

2007-09-02 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1075] py3k: Unicode error in os.stat on Windows

2007-08-31 Thread Amaury Forgeot d'Arc
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