Thanks a lot for your help.westms wrote:Hello zw963,zw963 wrote:I read my .profile just now, it now worked for me, because I global set `LC_CTYPE=zh_CN.UTF-8` in my .profile.
I even try to set `LANG=zh_CN.UTF-8`, it still not worked for me.
I thought start a 32bit qt application change some things certainly, then start a emacs with XIM, missing somethings.
Those `start 32bit qt application change some things', is Salix particularly exist.
Those `emacs with XIM', is slackware problem.
And i read some discuss here: http://slackware.im/post/8
Add a /etc/X11/xorg.conf.d/50-fontconfig.conf, content:
```sh
<pre>
Section "Files"
FontPath "/usr/share/fonts/misc"
EndSection
</pre>
```
will fix the latter problem, But it cause salix X11 broken. I don't understood what this file does.
Another people mention:
keep `xorg.conf' Section "Files', FontPath only one line. `/usr/share/font/misc', will resolve this problem,
But I even not found this file in Salix.
Hope can help some clue for this problem.
my comment is to this message and the your later (next younger) message.
You try to set C_CTYPE=zh_CN.UTF-8 and LANG=zh_CN.UTF-8
But have a look to this:Perhaps, you should try to set with zh_CN.utf8 instead.Code: Select all
locale -a | grep zh_CN zh_CN zh_CN.gb18030 zh_CN.gbk zh_CN.utf8
Next problem:
You may have files with configurations in directory /etc/X11/xorg.conf.d
or have a configuration file named xorg.conf in /etc/X11, or combine both methods.
The file /etc/X11/xorg.conf-vesa has no meening.
File xorg.conf may contain your given lines:From my /etc/X11/xorg.confCode: Select all
Section "Files" FontPath "/usr/share/fonts/misc" EndSection
The property "FontPath "/usr/share/fonts/misc" will be preset on your system too, so that the font path will not be necessary.Code: Select all
Section "Files" ModulePath "/usr/lib64/xorg/modules" ## FontPath "/usr/share/fonts/local" # missing # FontPath "/usr/share/fonts/TTF" # default ## FontPath "/usr/share/fonts/OTF" # missing # FontPath "/usr/share/fonts/Type1" # default # FontPath "/usr/share/fonts/misc" # default ## FontPath "/usr/share/fonts/CID" # missing # FontPath "/usr/share/fonts/75dpi/:unscaled" # default # FontPath "/usr/share/fonts/100dpi/:unscaled" # default # FontPath "/usr/share/fonts/75dpi" # default # FontPath "/usr/share/fonts/100dpi" # default # FontPath "/usr/share/fonts/cyrillic" # default EndSection
Maybe you will need the ModulePath to be set. If you are using a 32-bit system, the ModulePath needs to be adapted then.
Last problem:
I don't understand what you are talking about <pre> and </pre> here.
It would be glad if I have helped a little.
I do following step, but not work.
1. setting my locale as following
Code: Select all
export LANG=en_US.utf8
export LC_CTYPE=zh_CN.utf8
Code: Select all
Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/misc"
EndSection
What I do is following your's means? But it not worked for me.
<pre> </pre> is my copy mistake, it should be some blog/bbs tag?