kai zhu <[email protected]> added the comment:
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)
----------
nosy: +kaizhu
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com