View previous topic :: View next topic |
Author |
Message |
zlly20 n00b
Joined: 24 Feb 2003 Posts: 46
|
Posted: Mon Feb 24, 2003 3:11 am Post subject: Why I can't exprot my native language |
|
|
Hi all
I can't export LANG=zh_CN.GB2312,which is my native language,in /etc/profile, If I did, programs such as xmms,gtk and gimp will not display any fonts,not even english fonts.
I already localised my gentoo to enable it to display my native language characters.
what makes that happen??? |
|
Back to top |
|
|
fifo Guru
Joined: 14 Jan 2003 Posts: 437
|
Posted: Mon Feb 24, 2003 3:38 am Post subject: |
|
|
Does it do the right thing if you say
Code: | export LC_ALL=zh_CN |
instead? |
|
Back to top |
|
|
zlly20 n00b
Joined: 24 Feb 2003 Posts: 46
|
Posted: Mon Feb 24, 2003 6:01 am Post subject: |
|
|
no, it causes the same thing happen. |
|
Back to top |
|
|
zlly20 n00b
Joined: 24 Feb 2003 Posts: 46
|
Posted: Mon Feb 24, 2003 6:03 am Post subject: |
|
|
only LC_ALL=zh. CN_GB18030 can work, but it will cause all programs crash under gnome. |
|
Back to top |
|
|
fifo Guru
Joined: 14 Jan 2003 Posts: 437
|
Posted: Mon Feb 24, 2003 12:27 pm Post subject: |
|
|
Well I'm thinking maybe it's got something to do with your font setup, but I've no idea what, sorry. |
|
Back to top |
|
|
BillyD Guru
Joined: 05 May 2002 Posts: 323 Location: Australia
|
Posted: Mon Feb 24, 2003 12:30 pm Post subject: |
|
|
Have you got all of your fonts installed and configured correctly? fc-cache needs to be run after you install the correct fonts to let X (via xft) see where the fonts are. You also need your profile configured in .profile or .bashrc or somewhere similar. _________________ We used to have hominid cousins that were vegetarian. The palæontological record suggests that our ancestors killed them and ate them. |
|
Back to top |
|
|
hephooey n00b
Joined: 24 Feb 2003 Posts: 74
|
Posted: Mon Feb 24, 2003 12:57 pm Post subject: |
|
|
I've just found a similar problem after I updated to XFree 4.3.0rc2 today. when starting any gtk+ 1.2 apps, I've got the follow error message:
Gdk-WARNING **: Error converting icon name to text property: -2
I can use these apps only when I set LC_ALL=en_US. But then no chinese charactors:(
Other programs works well, qt3, kde, gtk2 all have no problem, only gtk goes mad |
|
Back to top |
|
|
BillyD Guru
Joined: 05 May 2002 Posts: 323 Location: Australia
|
Posted: Mon Feb 24, 2003 2:48 pm Post subject: |
|
|
For GTK1.2 you might need to alter your .gtkrc file and specify fonts in there...I have no idea what the settings would be for Chinese though. _________________ We used to have hominid cousins that were vegetarian. The palæontological record suggests that our ancestors killed them and ate them. |
|
Back to top |
|
|
zlly20 n00b
Joined: 24 Feb 2003 Posts: 46
|
Posted: Mon Feb 24, 2003 5:41 pm Post subject: thanks for help from all of you! |
|
|
i have already set the fontset in .gtkrc file,but it doesn't work. I don't know what hell is going wrong. i will continue seeking the cause of this problem. |
|
Back to top |
|
|
okram n00b
Joined: 06 Aug 2002 Posts: 74 Location: Taipei, Taiwan
|
Posted: Mon Mar 03, 2003 4:56 am Post subject: |
|
|
After a recent update I get the same error when I set LANG=en_GB
Fonts in gimp, xsane etc only appear with LANG=C or POSIX or en_US
Has anyone solved this yet? |
|
Back to top |
|
|
|