[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry
Tim Golden
report at bugs.python.org
Wed Apr 16 21:58:58 CEST 2014
Tim Golden added the comment:
The attached patch issue9291.7.patch (which is essentially an amalgam of 9291.patch & 9291a.patch with some tweaks of my own) does appear to solve the issue. My Windows setup is UK, so if any of the people still watching this issue could test against a non-English Windows, that would be useful.
Even this fix does leave some room for encoding mismatches between the stored values (mbcs encoded) and any string passed to guess_type. But it's not clear how that should be handled, and at least it doesn't crash out on .init.
----------
Added file: http://bugs.python.org/file34925/issue9291.7.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9291>
_______________________________________
More information about the Python-bugs-list
mailing list