Author r37c
Recipients r37c
Date 2008-01-07.11:24:23
SpamBayes Score 0.00493678
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2008-01-07 11:24:32r37csetspambayes_score: 0.00493678 -> 0.00493678
recipients: + r37c
2008-01-07 11:24:32r37csetspambayes_score: 0.00493678 -> 0.00493678
messageid: <>
2008-01-07 11:24:24r37clinkissue1754 messages
2008-01-07 11:24:24r37ccreate