Package: grun Version: 0.9.2-14 Severity: normal Tags: patch l10n When using locales other than C, translated strings are being passed to Gtk functions in the locale's encoding, while gtk expects them to be in utf-8. The attached patch ensures gettext will recode the strings.
*This is not a complete patch*
The *po files included in the package *must* be fixed to correctly
declare their encoding, and the package's build system must ensure
that the *gmo files are rebuilt with that information. Otherwise
gettext will not have the necesary info to perform the recoding.
I can attest that the es.po file is encoded in ISO-8859-1. Someone with
knowdledge of the other languages present needs to determine the
encoding of the rest of the po files.
------------------------------[Patch]---------------------------------
diff -r a7e1f1d8c9ef grun.c
--- a/grun.c Tue Aug 14 23:29:02 2007 -0500
+++ b/grun.c Sun Aug 19 00:32:39 2007 -0500
@@ -40,6 +40,7 @@
#include "grun2.xpm"
#if defined (HAVE_GETTEXT) || defined (HAVE_CATGETS)
#include <libintl.h>
+#define UTF8 "UTF-8"
#else
#include "intl/libintl.h"
#endif
@@ -1107,6 +1108,7 @@ int PASCAL WinMain(HINSTANCE hInst, HINS
#ifndef WIN32
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (PACKAGE, UTF8);
textdomain (PACKAGE);
#endif /* WIN32 */
------------------------------[/Patch]--------------------------------
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (400, 'unstable'), (50, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-3-k7 (SMP w/1 CPU core)
Locale: LANG=es_MX, LC_CTYPE=es_MX (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages grun depends on:
ii libatk1.0-0 1.18.0-2 The ATK accessibility toolkit
ii libc6 2.6-2 GNU C Library: Shared libraries
ii libcairo2 1.4.10-1 The Cairo 2D vector graphics libra
ii libfontconfig1 2.4.2-1.2 generic font configuration library
ii libglib2.0-0 2.12.13-1 The GLib library of C routines
ii libgtk2.0-0 2.10.13-1 The GTK+ graphical user interface
ii libpango1.0-0 1.16.5-1 Layout and rendering of internatio
ii libx11-6 2:1.1.1-1 X11 client-side library
ii libxcursor1 1:1.1.8-2 X cursor management library
ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar
ii libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio
ii libxi6 2:1.1.2-1 X11 Input extension library
ii libxinerama1 1:1.0.2-1 X11 Xinerama extension library
ii libxrandr2 2:1.2.1-1 X11 RandR extension library
ii libxrender1 1:0.9.2-1 X Rendering Extension client libra
grun recommends no packages.
-- no debconf information
signature.asc
Description: Digital signature

