Hi,

Here's a patch against gtk+2.0 which fixes this problem by converting
translations of GtkBuilder strings to from the locale's character set
to UTF-8.  I've verified that this fixes the problem on my system and
that it doesn't cause problems with any of the other GTK+ applications
that I normally use.

-- 
Matt                                            http://ftbfs.org/kraai
diff -u gtk+2.0-2.18.3/debian/changelog gtk+2.0-2.18.3/debian/changelog
--- gtk+2.0-2.18.3/debian/changelog
+++ gtk+2.0-2.18.3/debian/changelog
@@ -1,3 +1,11 @@
+gtk+2.0 (2.18.3-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/patches/093_convert-gtkbuilder-strings-to-utf8.patch:
+    + Patch to convert translated GtkBuilder strings to UTF-8. Closes: #552528.
+
+ -- Matt Kraai <kr...@debian.org>  Sat, 07 Nov 2009 13:49:27 -0800
+
 gtk+2.0 (2.18.3-1) unstable; urgency=low
 
   * New upstream bugfix release:
diff -u gtk+2.0-2.18.3/debian/patches/series gtk+2.0-2.18.3/debian/patches/series
--- gtk+2.0-2.18.3/debian/patches/series
+++ gtk+2.0-2.18.3/debian/patches/series
@@ -18,0 +19 @@
+093_convert-gtkbuilder-strings-to-utf8.patch
only in patch2:
unchanged:
--- gtk+2.0-2.18.3.orig/debian/patches/093_convert-gtkbuilder-strings-to-utf8.patch
+++ gtk+2.0-2.18.3/debian/patches/093_convert-gtkbuilder-strings-to-utf8.patch
@@ -0,0 +1,13 @@
+Index: gtk+2.0-2.18.3/gtk/gtkbuilderparser.c
+===================================================================
+--- gtk+2.0-2.18.3.orig/gtk/gtkbuilderparser.c	2009-11-07 13:45:40.000000000 -0800
++++ gtk+2.0-2.18.3/gtk/gtkbuilderparser.c	2009-11-07 13:46:17.000000000 -0800
+@@ -911,7 +911,7 @@
+   else
+     s = g_dgettext (domain, text);
+ 
+-  return g_strdup (s);
++  return g_locale_to_utf8 (s, -1, NULL, NULL, NULL);
+ }
+ 
+ /* Called for close tags </foo> */

Reply via email to