When I try to run gtk or qt based applications with part of my locale set to zh_CN.UTF-8 they give an error and revert to the default locale. However xfree clearly has the configuration files for this locale. There is no related error message in /var/log/XFree86.0.log Reproducible: Always Steps to Reproduce: 1. localedef -i zh_CN -f UTF-8 zh_CN.UTF-8 2. export LC_ALL="zh_CN.UTF-8" 3. run a gtk or a qt app Actual Results: However when I try to run gtk or qt apps they complain: Gdk-WARNING **: locale not supported by Xlib Qt: Locales not supported on X server Expected Results: no error message looking at the source code for gtk and for qt these error messages are in both cases the result of XSupportsLocale() returning FALSE. if I use the locale LANG=en_AU.UTF-8; LC_CTYPE=zh_CN.UTF I also get these errors but if I just use LANG=en_AU.UTF-8 then there is no error. Both locales have been made with localedef and locale -a lists them. /usr/X11R6/lib/X11/locale has a zh_CN and a zh_CN.UTF-8 directory. There seem to be appropriate entries in /usr/X11R6/lib/X11/locale/locale.dir I have found the following bugfix which is related to this locale but it is unclear to me if it is the cause of the problem Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo) ================================================================= System uname: 2.4.25-gentoo i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://linux.ntcu.net/dists/gentoo/ http://www.zentek-international.com/mirrors/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo http://linux.thai.net/pub/mirrors/gentoo ftp://linux.thai.net/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" USE="X acpi alsa apm arts cdr cjk crypt cups doc dvd encode esd foomaticdb freetype fs gdbm gif glade gnome gpg gpm gtk gtk2 guile icu imap innodb jabber jack java jpeg kde libg++ libwww mad maildir mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl png postgres python qt radeon rage128 readline samba scanner sdl slang slp speedo spell sse ssl svga tcltk tetex tiff truetype type1 unicode usb video_cards_rage128 x86 xml2 xmms xv yahoo zlib" http://bugs.xfree86.org/show_bug.cgi?id=991 Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo) ================================================================= System uname: 2.4.25-gentoo i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://linux.ntcu.net/dists/gentoo/ http://www.zentek-international.com/mirrors/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo http://linux.thai.net/pub/mirrors/gentoo ftp://linux.thai.net/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" USE="X acpi alsa apm arts cdr cjk crypt cups doc dvd encode esd foomaticdb freetype fs gdbm gif glade gnome gpg gpm gtk gtk2 guile icu imap innodb jabber jack java jpeg kde libg++ libwww mad maildir mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl png postgres python qt radeon rage128 readline samba scanner sdl slang slp speedo spell sse ssl svga tcltk tetex tiff truetype type1 unicode usb video_cards_rage128 x86 xml2 xmms xv yahoo zlib"
Sorry my pasting efforts went astray. I included the emerge info stuff twice and didn't include the link to the xfree bug report. Here it is http://bugs.xfree86.org/show_bug.cgi?id=991 Also this bug could be related to bug 46392 thanks
I've added a fix for the crashing bug in xorg-x11-6.7.0, which is the supported upgrade path from xfree-4.3.0. I'd prefer you also test with that.
ok will take a little to compile on my test machine
I tested xorg-x11. It works fine. I also ran the testsuite from openi18n.org. It stated that all the UTF-8 locales that should be supported by X were. So I think this issue is dealt with. I was a bit unclear though if you had done anything to patch xfree86 or not? thanks
The idea here is to avoid introducing new bugs inadvertantly into a stable ebuild, so instead we fix the new ebuild while it's in testing (xorg-x11). So no, 4.3.0-r5 won't be getting a fix. If you feel like testing 4.3.0-r6 you're welcome to do so and let me know how it goes -- I'd be happy to add a contributed patch to that to fix the issue you're having.
I am happy to test xfree-4.3.0-r6. Just let me know when it's ready for testing.
Now.
This is fixed in xorg-x11, and that's the supported upgrade path. I don't plan to change anything more in xfree, as much as possible.