View previous topic :: View next topic |
Author |
Message |
ahaau n00b
Joined: 19 Dec 2004 Posts: 25
|
Posted: Sun Dec 19, 2004 6:22 am Post subject: 中文locale问题求助 |
|
|
怎么配置(regenerate?) zh_CN.GB2312,现在问题很多,比如,
export LC_ALL=zh_CN.GB2312
export LANG=zh_CN.GB2312
man gvim
Failed to open the message catalog "man" for locale "zh_CN.GB2312"
(NLSPATH="/usr/share/locale/%L/%N")
在zh_CN.GB2312下,gvim的中文(包括menu)全部是问号,gentoo怎么有这么低级的字体错误?
下面是我的xorg.conf的字体部分,Xorg.0.log显示这些字体都是有效的
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/arphicfonts"
FontPath "/usr/share/fonts/zh-kcfonts"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/ttf/zh_CN"
FontPath "/usr/share/fonts/ttf/zh_TW"
EndSection |
|
Back to top |
|
|
wangxiaohu Apprentice
Joined: 15 Nov 2003 Posts: 248
|
Posted: Sun Dec 19, 2004 6:27 pm Post subject: Re: 中文locale问题求助 |
|
|
ahaau wrote: | 怎么配置(regenerate?) zh_CN.GB2312,现在问题很多,比如,
export LC_ALL=zh_CN.GB2312
export LANG=zh_CN.GB2312
man gvim
Failed to open the message catalog "man" for locale "zh_CN.GB2312"
(NLSPATH="/usr/share/locale/%L/%N")
在zh_CN.GB2312下,gvim的中文(包括menu)全部是问号,gentoo怎么有这么低级的字体错误?
下面是我的xorg.conf的字体部分,Xorg.0.log显示这些字体都是有效的
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/arphicfonts"
FontPath "/usr/share/fonts/zh-kcfonts"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/ttf/zh_CN"
FontPath "/usr/share/fonts/ttf/zh_TW"
EndSection |
只要设置成zh_CN就可以了 |
|
Back to top |
|
|
EricHsu Bodhisattva
Joined: 03 May 2004 Posts: 591 Location: Aragon Consulting Group, Beijing, China
|
|
Back to top |
|
|
ahaau n00b
Joined: 19 Dec 2004 Posts: 25
|
Posted: Wed Dec 22, 2004 3:04 am Post subject: 还是不明白 |
|
|
zh_CN,还是?????
man gvim还是出错
奇怪呀奇怪
我在gnome-term, mozilla, gaim下的中文都没问题,就这个gvim气死人啦
btw,
export LC_ALL=zh_CN.GB2312
gedit &
gedit works smoothly what's going on
already several times "emerge -e system;emerge --newuse world", but gvim still shows ???? instead of Chinese characters. I don't remember see ???? in debian for long |
|
Back to top |
|
|
shyokou n00b
Joined: 16 Dec 2004 Posts: 4
|
Posted: Wed Dec 22, 2004 3:52 am Post subject: Locale is more than you have seen |
|
|
It is NOT a good idea using mixed locales; but I DO think it is a good idea using a universal locale, UTF-8 ...
Man depends upon your locale heavily, so incorrect locale may give rise funny looking characters as you have seen.
You should check your locale settings, LC_*, and LANG. Generally speaking, it is idiot to change the default LC_* settings; just change LANG is enough for general purpose ...
Keep on learning and trying |
|
Back to top |
|
|
ahaau n00b
Joined: 19 Dec 2004 Posts: 25
|
Posted: Wed Dec 22, 2004 4:07 am Post subject: how to? |
|
|
it's not a problem of mixture, but zh_CN doesn't work properly
how to build (rebuild) zh_CN ?
that's what I need now.
even if zh_CN does work, I'm afraid I would still face the gvim problem. all Chinese characters are just question masks ?????
gentoo doesn't provide much to do a simple rebuilding or troubleshooting |
|
Back to top |
|
|
EricHsu Bodhisattva
Joined: 03 May 2004 Posts: 591 Location: Aragon Consulting Group, Beijing, China
|
Posted: Wed Dec 22, 2004 1:10 pm Post subject: |
|
|
ahaau, have you tried to re-emerge your glibc and set the LC_ALL=zh_CN as suggested in my post? To know what locales your system supports, just run:
You system locale could only be set to one of the locales listed by that command. To know more information, please read my post mentioned above _________________ - http://nkbit.com
- http://twitter.com/xuyihua |
|
Back to top |
|
|
meteozwh n00b
Joined: 27 May 2003 Posts: 46
|
Posted: Fri Dec 24, 2004 5:11 pm Post subject: |
|
|
ahaau,这个问题是出在这里,gvim所用的菜单,文字编码都是utf8的,如果你使用zh_CN.utf8的区域设置,就会看到gvim的菜单显示正常了。如果你不想切换区域设置,用这个办法也可以:
Code: | LC_ALL="zh_CN.utf8" gvim |
不过这样可能会有其他问题,比如建立的中文文件不能顺利阅读,我最后的选择就是用英文版或者不用gvim。 |
|
Back to top |
|
|
ahaau n00b
Joined: 19 Dec 2004 Posts: 25
|
Posted: Thu Jan 13, 2005 4:53 pm Post subject: guifontset |
|
|
好象不是LC的问题
/etc/vim/vimrc里面zh_TW部分设有
set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
繁体中文显示正常
请问,简体中文该怎样设呢? |
|
Back to top |
|
|
blackwhite Apprentice
Joined: 24 Jun 2004 Posts: 250
|
Posted: Mon Feb 14, 2005 2:15 pm Post subject: |
|
|
Quote: | set fileencodings=gb2312
set encoding=euc-cn
set guifontset=-sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-1,-misc-simsun-medium-r-normal--16-*
set ch=2 " Make command line two lines high
|
|
|
Back to top |
|
|
|