[evolution-patches] Patch : fix wrong encoding for translation in ximian connector



The following patch fixes translation when using non-UTF8 locale.

Permission to commit ?
-- 
Frederic Crozat <fcrozat mandrakesoft com>
Mandrakesoft
? ximian-connector-2.0.1-utf8.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.139.2.15
diff -u -p -r1.139.2.15 ChangeLog
--- ChangeLog	11 Oct 2004 06:24:54 -0000	1.139.2.15
+++ ChangeLog	11 Oct 2004 12:12:25 -0000
@@ -1,3 +1,10 @@
+2004-10-11  Frederic Crozat  <fcrozat mandrakesoft com>
+
+	* camel/camel-exchange-provider.c: (camel_provider_module_init):
+	* storage/main.c: (main):
+	* storage/ximian-connector-setup.c: (main):
+	Initialize codeset for textdomain.
+
 2004-10-11  Sarfraaz Ahmed <asarfraaz novell com>
 
 	* configure.in : Updated version to 2.0.2
Index: camel/camel-exchange-provider.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/camel/camel-exchange-provider.c,v
retrieving revision 1.2
diff -u -p -r1.2 camel-exchange-provider.c
--- camel/camel-exchange-provider.c	16 Jun 2004 19:44:46 -0000	1.2
+++ camel/camel-exchange-provider.c	11 Oct 2004 12:12:25 -0000
@@ -147,6 +147,7 @@ camel_provider_module_init (void)
 	exchange_provider.auto_detect = exchange_auto_detect_cb;
 
 	bindtextdomain (GETTEXT_PACKAGE, CONNECTOR_LOCALEDIR);
+	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	exchange_provider.translation_domain = GETTEXT_PACKAGE;
 
 	camel_provider_register (&exchange_provider);
Index: storage/main.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/storage/main.c,v
retrieving revision 1.4
diff -u -p -r1.4 main.c
--- storage/main.c	21 Jun 2004 21:14:29 -0000	1.4
+++ storage/main.c	11 Oct 2004 12:12:25 -0000
@@ -149,6 +149,7 @@ main (int argc, char **argv)
 	char *path;
 
 	bindtextdomain (PACKAGE, CONNECTOR_LOCALEDIR);
+	bind_textdomain_codeset (PACKAGE, "UTF-8");
 	textdomain (PACKAGE);
 
 	gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv,
Index: storage/ximian-connector-setup.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/storage/ximian-connector-setup.c,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 ximian-connector-setup.c
--- storage/ximian-connector-setup.c	11 May 2004 15:15:58 -0000	1.1.1.2
+++ storage/ximian-connector-setup.c	11 Oct 2004 12:12:25 -0000
@@ -35,6 +35,7 @@ int
 main (int argc, char **argv)
 {
 	bindtextdomain (PACKAGE, CONNECTOR_LOCALEDIR);
+	bind_textdomain_codeset (PACKAGE, "UTF-8");
 	textdomain (PACKAGE);
 
 	gnome_program_init ("ximian-connector-setup", VERSION,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]