Index: grit/format/html_inline.py |
diff --git a/grit/format/html_inline.py b/grit/format/html_inline.py |
index 589e49b6a94f93a8c9b81c973338643b8803272e..c2b898e1e0cdbf2d303b3a5bf99a47230f26a80b 100755 |
--- a/grit/format/html_inline.py |
+++ b/grit/format/html_inline.py |
@@ -19,6 +19,12 @@ import mimetypes |
from grit import lazy_re |
from grit import util |
+# There is a python bug that makes mimetypes crash if the Windows |
+# registry contains non-Latin keys ( http://bugs.python.org/issue9291 |
+# ). Initing manually and blocking external mime-type databases will |
+# prevent that bug and still give us the data we need. |
+mimetypes.init([]) |
+ |
DIST_DEFAULT = 'chromium' |
DIST_ENV_VAR = 'CHROMIUM_BUILD' |
DIST_SUBSTR = '%DISTRIBUTION%' |