Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2311 - X does not compile with with zh_CN.GB2131 support
Summary: X does not compile with with zh_CN.GB2131 support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stuart Bouyer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-01 12:03 UTC by Pardsbane
Modified: 2003-01-28 00:30 UTC (History)
1 user (show)

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 Pardsbane 2002-05-01 12:03:44 UTC
Hi, I'm trying to setup chinput for my GF to enter simplified Chinese text on Gentoo. It turns out that X does not support the correct locale, which would be one of the zh_CN variants. I'm not sure if this is an issue with glibc or X itself, but somehow the locale needs to be enabled.  I'm not sure what is required at this level of detail, I know other distros have the zh_CN locale available out of the box.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-05 05:59:54 UTC
azarah@nosferatu id3lib $ ls /usr/X11R6/lib/X11/locale/zh_CN/
Compose  XLC_LOCALE
azarah@nosferatu id3lib $ 


Seems fine here .. did you have "nls" in USE when merging xfree ?
Comment 2 Pardsbane 2002-05-06 12:09:14 UTC
I have that directory as well, , but if I do this:

LANG=zh_CN.GB2312
LC_CTYPE=zh_CN.GB2312
XMODIFIERS="@im=Chinput"
export LANG LC_CTYPE XMODIFIERS

at the command line, and then run the following commands, I get error messages:

sharon@ragnarok:~/bin$ xfontsel
Warning: locale not supported by Xlib, locale set to C
sharon@ragnarok:~/bin$ kword
Qt: Locales not supported on X server
<snipped rest of output>

Currently chinput refuses to run, complaining about a missing font. I'm not 
sure if that is related or not.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-06 12:45:55 UTC
OK, to be honest, I dont know much of locales, as I have never used them
myself :/  Ill ask around for a developer who can take this up.  Any idea
if it works if you move the locale file to /usr/share/locale/ ?
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-11 18:13:10 UTC
Az, I'll reassign this to Stuart, since he's our CJK guy
Comment 5 Stuart Bouyer (RETIRED) gentoo-dev 2002-08-12 08:37:51 UTC
Please check /usr/lib/X11/locale/local.dir for the following entry

zh_CN/XLC_LOCALE:   zh_CN.GB2312

It should be there. If it isn't then check that you compiled X with
"nls" in USE.

It looks like it could be an X font problem - I've got a similiar issue while
testing xcin. 

When I set rxvt -km gb
export LC_CTYPE=zh_CN.GB2312
xcin

I get an xcin window.

Also check that /usr/X11R6/lib/X11/fonts/encodings/large/gb2312.1980-0.enc.gz
is present on your system.

You could also test app-i18n/xcin (currently masked) and let me know how you go.
Comment 6 Stuart Bouyer (RETIRED) gentoo-dev 2002-08-30 09:43:36 UTC
Any progress with this?

Are you still having problems?

Try emergeing arphicfonts, they should work happily with X now.

Thanks

Stuart
Comment 7 Stuart Bouyer (RETIRED) gentoo-dev 2002-10-12 07:40:54 UTC
Haven't had any feedback from the bug reporter for over a month.

I have no problems with chinese support in Xfree so I'll close this bug
Comment 8 Pardsbane 2002-10-15 10:41:04 UTC
Sorry for not posting, I was trying to find time to test, but I was not able 
to. I'll reopen the bug if I have more information, but I'm satisfied for now. 
Thanks.