From e433f8724f5b5bb51f5c7e9c581f97ede49caa5e Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Tue, 21 May 2013 21:24:30 +0100 Subject: [PATCH] Fixed unicode support (again...) :) --- usr/lib/linuxmint/mintMenu/plugins/easybuttons.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py index 6f85fb7..3b2c64b 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py +++ b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py @@ -354,15 +354,13 @@ class ApplicationLauncher( easyButton ): return True def strip_accents(self, string): + value = string if isinstance(string, unicode): - return string - else: - import unicodedata try: - value = unicodedata.normalize('NFKD', unicode(string)).encode('UTF8', 'ignore') + value = string.encode('UTF8', 'ignore') except: - value = string - return value + pass + return value def getTooltip( self ): tooltip = self.appName