[New-bugs-announce] [issue1754] WindowsError messages are not properly encoded
Romulo A. Ceccon
report at bugs.python.org
Mon Jan 7 12:24:32 CET 2008
New submission from Romulo A. Ceccon:
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.
----------
components: Windows
messages: 59441
nosy: Romulo A. Ceccon
severity: minor
status: open
title: WindowsError messages are not properly encoded
type: behavior
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1754>
__________________________________
More information about the New-bugs-announce
mailing list