diff options
Diffstat (limited to 'meta-xfce/recipes-apps/menulibre/files/0003-MenulibreXdg.py-fix-loading-of-desktop-files.patch')
-rw-r--r-- | meta-xfce/recipes-apps/menulibre/files/0003-MenulibreXdg.py-fix-loading-of-desktop-files.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/meta-xfce/recipes-apps/menulibre/files/0003-MenulibreXdg.py-fix-loading-of-desktop-files.patch b/meta-xfce/recipes-apps/menulibre/files/0003-MenulibreXdg.py-fix-loading-of-desktop-files.patch deleted file mode 100644 index 1e92088e1..000000000 --- a/meta-xfce/recipes-apps/menulibre/files/0003-MenulibreXdg.py-fix-loading-of-desktop-files.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 90098d835b62b38ac396d55b80a684770dbaacde Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Mon, 31 Oct 2016 15:50:52 +0100 | ||
4 | Subject: [PATCH] MenulibreXdg.py: fix loading of desktop files | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | fixes: | ||
10 | | UnicodeDecodeError: 'ascii' codec can't decode byet 0xd9 in position 235: ordinal not in range(128) | ||
11 | |||
12 | and information display not properly filled. | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
17 | --- | ||
18 | menulibre/MenulibreXdg.py | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/menulibre/MenulibreXdg.py b/menulibre/MenulibreXdg.py | ||
22 | index e04c5e6..14b2593 100644 | ||
23 | --- a/menulibre/MenulibreXdg.py | ||
24 | +++ b/menulibre/MenulibreXdg.py | ||
25 | @@ -74,7 +74,7 @@ class MenulibreDesktopEntry: | ||
26 | |||
27 | def load_properties(self, filename): | ||
28 | """Load the properties.""" | ||
29 | - input_file = open(filename) | ||
30 | + input_file = open(filename, 'rt', encoding='utf-8') | ||
31 | self.load_properties_from_text(input_file.read()) | ||
32 | input_file.close() | ||
33 | |||
34 | -- | ||
35 | 2.5.5 | ||
36 | |||