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 kaizhu
Recipients Dmitry.Jemerov, brian.curtin, kaizhu, r.david.murray
Date 2010-08-12.07:13:43
SpamBayes Score 2.12503e-10
Marked as misclassified No
Message-id <>
python 3.1.2 mimetypes initialization also fails in redhat linux:

>>> import http.server
Traceback (most recent call last):
  File "/home/public/i386-redhat-linux-gnu/python/lib/python3.1/http/", line 588, in <module>
    class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
  File "/home/public/i386-redhat-linux-gnu/python/lib/python3.1/http/", line 764, in SimpleHTTPRequestHandler
    mimetypes.init() # try to read system mime.types
  File "/home/public/i386-redhat-linux-gnu/python/lib/python3.1/", line 305, in init
  File "/home/public/i386-redhat-linux-gnu/python/lib/python3.1/", line 209, in readfp
    line = fp.readline()
  File "/home/public/i386-redhat-linux-gnu/bin/../python/lib/python3.1/encodings/", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3921: ordinal not in range(128)
Date User Action Args
2010-08-12 07:13:46kaizhusetrecipients: + kaizhu, r.david.murray, brian.curtin, Dmitry.Jemerov
2010-08-12 07:13:45kaizhusetmessageid: <>
2010-08-12 07:13:44kaizhulinkissue9291 messages
2010-08-12 07:13:43kaizhucreate