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 r37c
Recipients r37c
Date 2008-01-07.11:24:23
SpamBayes Score 0.004936784
Marked as misclassified No
Message-id <1199705072.7.0.841408898872.issue1754@psf.upfronthosting.co.za>
In-reply-to
Content
The message for WindowsError is taken from the Windows API's
FormatMessage() function, following the OS language. Currently Python
does no conversion for those messages, so non-ASCII characters end up
improperly encoded in the console. For example:

  >>> import os
  >>> os.rmdir('E:\\temp')
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  WindowsError: [Error 41] A pasta nÒo estß vazia: 'E:\\temp'

Should be: "A pasta não está vazia" [Folder is not empty].

Python could check what is the code page of the current output interface
and change the message accordingly.
History
Date User Action Args
2008-01-07 11:24:32r37csetspambayes_score: 0.00493678 -> 0.004936784
recipients: + r37c
2008-01-07 11:24:32r37csetspambayes_score: 0.00493678 -> 0.00493678
messageid: <1199705072.7.0.841408898872.issue1754@psf.upfronthosting.co.za>
2008-01-07 11:24:24r37clinkissue1754 messages
2008-01-07 11:24:24r37ccreate