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 <1281597225.58.0.762248710809.issue9291@psf.upfronthosting.co.za>
In-reply-to
Content
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/server.py", line 588, in <module>
    class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
  File "/home/public/i386-redhat-linux-gnu/python/lib/python3.1/http/server.py", line 764, in SimpleHTTPRequestHandler
    mimetypes.init() # try to read system mime.types
  File "/home/public/i386-redhat-linux-gnu/python/lib/python3.1/mimetypes.py", line 305, in init
    db.readfp(open(file))
  File "/home/public/i386-redhat-linux-gnu/python/lib/python3.1/mimetypes.py", line 209, in readfp
    line = fp.readline()
  File "/home/public/i386-redhat-linux-gnu/bin/../python/lib/python3.1/encodings/ascii.py", 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)
History
Date User Action Args
2010-08-12 07:13:46kaizhusetrecipients: + kaizhu, r.david.murray, brian.curtin, Dmitry.Jemerov
2010-08-12 07:13:45kaizhusetmessageid: <1281597225.58.0.762248710809.issue9291@psf.upfronthosting.co.za>
2010-08-12 07:13:44kaizhulinkissue9291 messages
2010-08-12 07:13:43kaizhucreate