[New-bugs-announce] [issue4429] ctypes.FormatError raises when the string to return contains non-ascii characters

Thomas Heller report at bugs.python.org
Tue Nov 25 13:43:12 CET 2008


New submission from Thomas Heller <theller at ctypes.org>:

ctypes raises UnicodeDecodeError in german windows (it should print
'Unzulässige Funktion'):

>>> from ctypes import FormatError
[46681 refs]
>>> FormatError(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 5-7:
invalid data
[46742 refs]
>>>

----------
assignee: theller
components: ctypes
messages: 76411
nosy: theller
priority: release blocker
severity: normal
status: open
title: ctypes.FormatError raises when the string to return contains non-ascii characters
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4429>
_______________________________________


More information about the New-bugs-announce mailing list