This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Dmitry.Jemerov, Hugo.Lol, Roman.Evstifeev, Suzumizaki, Vladimir Iofik, aclover, adamhj, brian.curtin, eric.araujo, frankoid, kaizhu, r.david.murray, tim.golden, vldmit, vstinner
Date 2013-12-18.16:35:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387384535.21.0.8221264886.issue9291@psf.upfronthosting.co.za>
In-reply-to
Content
Issue #20017 has been marked as a duplicate of this issue. Copy of the message:

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_code
    exec code in run_globals
  File "C:\Python27\lib\SimpleHTTPServer.py", line 27, in <module>
    class SimpleHTTPRequestHandler(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_registry
    for 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)
History
Date User Action Args
2013-12-18 16:35:35vstinnersetrecipients: + vstinner, tim.golden, eric.araujo, kaizhu, aclover, r.david.murray, brian.curtin, Suzumizaki, frankoid, Dmitry.Jemerov, vldmit, Vladimir Iofik, Roman.Evstifeev, adamhj, Hugo.Lol
2013-12-18 16:35:35vstinnersetmessageid: <1387384535.21.0.8221264886.issue9291@psf.upfronthosting.co.za>
2013-12-18 16:35:35vstinnerlinkissue9291 messages
2013-12-18 16:35:35vstinnercreate