Blame SOURCES/mailman-findmember_decode.patch

5e5744
--- a/Mailman/Cgi/admin.py	2015-03-09 20:37:28 +0000
5e5744
+++ b/Mailman/Cgi/admin.py	2015-04-13 22:17:02 +0000
5e5744
@@ -911,6 +911,15 @@
5e5744
     all.sort(lambda x, y: cmp(x.lower(), y.lower()))
5e5744
     # See if the query has a regular expression
5e5744
     regexp = cgidata.getvalue('findmember', '').strip()
5e5744
+    try:
5e5744
+        regexp = regexp.decode(Utils.GetCharSet(mlist.preferred_language))
5e5744
+    except UnicodeDecodeError:
5e5744
+        # This is probably a non-ascii character and an English language
5e5744
+        # (ascii) list.  Even if we didn't throw the UnicodeDecodeError,
5e5744
+        # the input may have contained mnemonic or numeric HTML entites mixed
5e5744
+        # with other characters.  Trying to grok the real meaning out of that
5e5744
+        # is complex and error prone, so we don't try.
5e5744
+        pass
5e5744
     if regexp:
5e5744
         try:
5e5744
             cre = re.compile(regexp, re.IGNORECASE)
5e5744