correctly decode non-ascii chars when looking in roster. Fixes #4496
This commit is contained in:
		
							parent
							
								
									02230e0607
								
							
						
					
					
						commit
						b00b1ce0f4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1417,7 +1417,7 @@ class RosterWindow:
 | 
				
			||||||
##############################################################################
 | 
					##############################################################################
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def _search_roster_func(self, model, column, key, titer):
 | 
						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()
 | 
							name = model[titer][C_NAME].decode('utf-8').lower()
 | 
				
			||||||
		return not (key in name)
 | 
							return not (key in name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue