[New-bugs-announce] [issue16617] mimetypes.py UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

Vladimir Kotulskiy report at bugs.python.org
Wed Dec 5 18:05:26 CET 2012


New submission from Vladimir Kotulskiy:

File "C:\DevTools\Python27\lib\mimetypes.py", line 355, in init
    db.read_windows_registry()
  File "C:\DevTools\Python27\lib\mimetypes.py", line 259, in read_windows_registry
    for ctype in enum_types(mimedb):
  File "C:\DevTools\Python27\lib\mimetypes.py", line 249, in enum_types
    ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

----------
components: Unicode, Windows
files: mimetypes.patch
keywords: patch
messages: 176990
nosy: Vladimir.Kotulskiy, ezio.melotti
priority: normal
severity: normal
status: open
title: mimetypes.py UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file28210/mimetypes.patch

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


More information about the New-bugs-announce mailing list