Subject: Re: GTK+/GLib and i18n
To: Eric Jacoboni <jaco@teaser.fr>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: current-users
Date: 08/13/2002 00:10:10
Eric Jacoboni wrote:
> Yes, all menu items with diacritics are nuked... 
> 
> Jaromir> If yes, it's probably gtk_button_new_with_label() (et. al) which
> Jaromir> is to blame.
> 
> It's seems related to NetBSD locales as FreeBSD and Linux (i don't
> have tried OpenBSD) have not this problem...

So, I've tracked this down. Seems like the gtk supplement for 
wide character routines is buggy. When I compile gtk with
configure arg --with-native-locale, it displays national characters
correctly (well, module font issues in my (iso-8859-2) case for gaim).

Guess what: FreeBSD gtk port _is_ compiled with option --with-native-locale
too, and I guess that Linux packages too.

Following helps:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gtk/Makefile,v
retrieving revision 1.70
diff -u -p -r1.70 Makefile
--- Makefile	2002/07/03 03:24:49	1.70
+++ Makefile	2002/08/12 22:05:16
@@ -22,8 +22,8 @@ USE_X11BASE=		yes
 USE_GMAKE=		yes
 
 GNU_CONFIGURE=		 yes
-CONFIGURE_ARGS+=	--with-xinput=xfree \
-					--sysconfdir=${X11PREFIX}/share
+CONFIGURE_ARGS+=	--with-xinput=xfree --with-native-locale=yes \
+				--sysconfdir=${X11PREFIX}/share
 CONFIGURE_ENV+=		X_LDFLAGS="${X_LDFLAGS}"
 
 INFO_FILES=		gdk.info gtk.info

I'll send a PR with this problem, so hopefully the NetBSD package
would be fixed shortly.

Wouldn't have imagined this would be as simple :)

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-