You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-9291: mimetypes initialization fails on Windows because of non-Latin characters in registry
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2013-12-18.16:34:51.543>created_at=<Date2013-12-18.16:33:28.853>labels= ['expert-unicode', 'OS-windows']
title='SimpleHTTPServer: UnicodeDecodeError on Windows 8 (64-bit)'updated_at=<Date2013-12-18.16:34:51.542>user='https://bugs.python.org/HugoLol'
Running Windows 8 (64-bit) and Python 2.7.6 (64-bit).
> python -m SimpleHTTPServer
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_codeexec code in run_globals
File "C:\Python27\lib\SimpleHTTPServer.py", line 27, in <module>classSimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
File "C:\Python27\lib\SimpleHTTPServer.py", line 208, in SimpleHTTPRequestHand
ler
mimetypes.init() # try to read system mime.types
File "C:\Python27\lib\mimetypes.py", line 358, in init
db.read_windows_registry()
File "C:\Python27\lib\mimetypes.py", line 258, in read_windows_registryfor subkeyname in enum_types(hkcr):
File "C:\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 0xd7 in position 2: ordinal
not in range(128)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: