Message144357
| Author |
vstinner |
| Recipients |
sandro.tosi, terry.reedy, vstinner |
| Date |
2011年09月20日.23:07:07 |
| SpamBayes Score |
2.387098e-09 |
| Marked as misclassified |
No |
| Message-id |
<1316560027.85.0.800562759244.issue13025@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
On Debian and Ubuntu, /etc/mime.types file is pure ASCII, but on Fedora 15 it contains a non-ASCII character, 3 (U+00B3), in the line:
"application/vnd.geocube+xml g3 g3"
And the file is encoded in UTF-8.
That's why Python should read this file from UTF-8 instead of the locale encoding, because the locale encoding can be ASCII. Attached patch implements this idead.
I think that it is a bug and so it should also be fixed in Python 3.2.
(Python 2.7 reads the file in binary mode, it doesn't care of the encoding.) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年09月20日 23:07:07 | vstinner | set | recipients:
+ vstinner, terry.reedy, sandro.tosi |
| 2011年09月20日 23:07:07 | vstinner | set | messageid: <1316560027.85.0.800562759244.issue13025@psf.upfronthosting.co.za> |
| 2011年09月20日 23:07:07 | vstinner | link | issue13025 messages |
| 2011年09月20日 23:07:07 | vstinner | create |
|