Contents of /trunk/gnome-disk-utility/patches/gnome-disk-utility-2.32.1-non-utf8-crash.patch
Parent Directory | Revision Log
Revision 1418 -
(show annotations)
(download)
Thu Jul 14 20:55:06 2011 UTC (13 years, 2 months ago) by niro
File size: 1044 byte(s)
Thu Jul 14 20:55:06 2011 UTC (13 years, 2 months ago) by niro
File size: 1044 byte(s)
-added utf-8 patch
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) |
5 | |
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. |
9 | |
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(-) |
15 | |
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 |
27 | } |
28 | |
29 | static void |
30 | -- |
31 | 1.7.1 |
32 |