correctly decode non-ascii chars when looking in roster. Fixes #4496

This commit is contained in:
Yann Leboulanger 2008-11-18 21:59:14 +00:00
parent 02230e0607
commit b00b1ce0f4
1 changed files with 1 additions and 1 deletions

View File

@ -1417,7 +1417,7 @@ class RosterWindow:
##############################################################################
def _search_roster_func(self, model, column, key, titer):
key = gobject.markup_escape_text(key.lower())
key = key.decode('utf-8').lower()
name = model[titer][C_NAME].decode('utf-8').lower()
return not (key in name)