[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

Vladimir Iofik report at bugs.python.org
Fri Oct 22 08:43:12 CEST 2010


Vladimir Iofik <v-iofik at yandex.ru> added the comment:

UnicodeDecodeException is thrown because 'ctype' is already a string, 
so it is first implicitly decoded by default encoder (which is 'ascii') and then reencoded back. I see no reason in all these actions, so I simply removed them. I think Antoine Pitrou (who is the author of these lines) can shed some light on this, but I guess it's just a copy-paste of the code below.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9291>
_______________________________________


More information about the Python-bugs-list mailing list