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.
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 ?
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.
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/ ?
Az, I'll reassign this to Stuart, since he's our CJK guy
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.
Any progress with this? Are you still having problems? Try emergeing arphicfonts, they should work happily with X now. Thanks Stuart
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
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.