From 80b110c17123ad74bb472d11bd2ac3d20ef5802c Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Wed, 14 Oct 2015 20:52:36 +0200 Subject: [PATCH] Fix utf8 error --- dmenu_extended.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmenu_extended.py b/dmenu_extended.py index 3c33a07..2d6d213 100755 --- a/dmenu_extended.py +++ b/dmenu_extended.py @@ -548,7 +548,7 @@ def scan_applications(self): pathname = os.path.join(app_path,filename) if os.path.isfile(pathname): # Open the application file using the system's preferred encoding (probably utf-8) - with codecs.open(pathname,'r',encoding=system_encoding) as f: + with codecs.open(pathname,'r',encoding=system_encoding, errors='ignore') as f: name = None command = None terminal = None