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

Martin v. Löwis report at bugs.python.org
Sat Feb 22 18:28:45 CET 2014


Martin v. Löwis added the comment:

Michał: Can you please report the exact registry key and value that is causing the problem? It's difficult to test a patch if one is not able to reproduce the problem.

Of the patches suggested: does any of them fix the problem for you? If so, which one?

I personally fine Vladimir's patch more plausible (EnumKeys gives bytes objects in 2.x, so it is pointless to apply .encode to them). The introduction of the count() call is unrelated, though, and should be omitted from a bug fix.

----------
nosy: +loewis

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


More information about the Python-bugs-list mailing list