From 234994bfafbd562d48434e3ce19b8be1dda5c4d0 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Thu, 27 Aug 2009 19:51:57 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20of=20issue=203188,=20search=20for=20?= =?UTF-8?q?=C3=BC=20did=20not=20work.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn: r13125 --- src/Filters/Rules/_Rule.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Filters/Rules/_Rule.py b/src/Filters/Rules/_Rule.py index 9f0c0be3a..6faee52e2 100644 --- a/src/Filters/Rules/_Rule.py +++ b/src/Filters/Rules/_Rule.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # @@ -76,6 +77,9 @@ class Rule(object): return ';'.join(v) def match_substring(self, param_index, str_var): + # make str_var unicode so that search for ΓΌ works + # see issue 3188 + str_var = unicode(str_var) if self.list[param_index] and \ (str_var.upper().find(self.list[param_index].upper()) == -1): return False