This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc
Date 2007-08-31.21:18:21
SpamBayes Score 0.07581637
Marked as misclassified No
Message-id <1188595101.9.0.193573207097.issue1075@psf.upfronthosting.co.za>
In-reply-to
Content
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
File name Uploaded
errors.diff amaury.forgeotdarc, 2007-08-31.21:18:21
History
Date User Action Args
2007-08-31 21:18:22amaury.forgeotdarcsetspambayes_score: 0.0758164 -> 0.07581637
recipients: + amaury.forgeotdarc
2007-08-31 21:18:21amaury.forgeotdarcsetspambayes_score: 0.0758164 -> 0.0758164
messageid: <1188595101.9.0.193573207097.issue1075@psf.upfronthosting.co.za>
2007-08-31 21:18:21amaury.forgeotdarclinkissue1075 messages
2007-08-31 21:18:21amaury.forgeotdarccreate