Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49251 - XFree86 http://www.xfree-4.3.0-r5 has support for zh_CN.UTF-8 locale but at runtime it claims it isn't supported
Summary: XFree86 http://www.xfree-4.3.0-r5 has support for zh_CN.UTF-8 locale but at r...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-28 00:01 UTC by gna
Modified: 2004-06-08 00:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gna 2004-04-28 00:01:50 UTC
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"
Comment 1 gna 2004-04-28 21:37:11 UTC
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
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-28 21:53:20 UTC
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.
Comment 3 gna 2004-04-28 22:14:18 UTC
ok will take a little to compile on my test machine
Comment 4 gna 2004-05-01 01:28:03 UTC
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
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-05-02 13:01:58 UTC
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.
Comment 6 gna 2004-05-05 21:34:24 UTC
I am happy to test xfree-4.3.0-r6. Just let me know when it's ready for testing.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2004-05-05 22:00:48 UTC
Now.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-08 00:16:21 UTC
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.