updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / lib32-libgdu / fix-freeze.patch
blob262748bfb6077647bd7b92bb7822f770734e3562
1 From 82489b51443e1280dfb9fb251ea2693df1809aec Mon Sep 17 00:00:00 2001
2 From: Pascal Terjan <pterjan@mandriva.com>
3 Date: Mon, 3 May 2010 14:01:22 +0200
4 Subject: [PATCH] Force GduPresentable ids to be UTF-8 (#616198)
6 GduPresentable created in gdu pool include intheir id some strings
7 in local encoding like _("Peripheral Devices"). This patch
8 enforces them to be UTF-8.
10 This fixes a crash of gvfs-gdu-volume-monitor when USB devices are
11 available on a non UTF-8 system.
12 ---
13 src/gdu/gdu-pool.c | 3 +++
14 1 files changed, 3 insertions(+), 0 deletions(-)
16 diff --git a/src/gdu/gdu-pool.c b/src/gdu/gdu-pool.c
17 index bd5eccf..cf6be53 100644
18 --- a/src/gdu/gdu-pool.c
19 +++ b/src/gdu/gdu-pool.c
20 @@ -473,6 +473,9 @@ gdu_pool_class_init (GduPoolClass *klass)
21 g_cclosure_marshal_VOID__OBJECT,
22 G_TYPE_NONE, 1,
23 GDU_TYPE_PRESENTABLE);
24 +#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
25 + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
26 +#endif
29 static void
30 --
31 1.7.1