From 26dceeabfd3878b09c4becccf4bc2c5965d0cb6e Mon Sep 17 00:00:00 2001
From: Martin Wilck <martin.wilck@ts.fujitsu.com>
Date: Fri, 25 May 2012 18:23:54 +0200
Subject: [PATCH] Fix for http://moinmo.in/MoinMoinBugs/FindPage

---
 macro/AdvancedSearch.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/macro/AdvancedSearch.py b/macro/AdvancedSearch.py
index ded9379..995af87 100644
--- a/macro/AdvancedSearch.py
+++ b/macro/AdvancedSearch.py
@@ -120,7 +120,7 @@ def advanced_ui(macro):
     mt_select = makeSelection('mimetype',
             [('', _('any mimetype'))] +
             [(type, 'all %s files' % type) for type in getMimetypes()] +
-            [(m[1], '*%s - %s' % m) for m in sorted(mimetypes.types_map.items())],
+            [(m[1], '*%s - %s' % (unicode(m[0], 'utf-8'), m[1])) for m in sorted(mimetypes.types_map.items())],
             mimetype, 3, True)
 
     # misc search options (checkboxes)
-- 
1.7.7.6

