Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
中文locale问题求助
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
ahaau
n00b
n00b


Joined: 19 Dec 2004
Posts: 25

PostPosted: Sun Dec 19, 2004 6:22 am    Post subject: 中文locale问题求助 Reply with quote

怎么配置(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
View user's profile Send private message
wangxiaohu
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 248

PostPosted: Sun Dec 19, 2004 6:27 pm    Post subject: Re: 中文locale问题求助 Reply with quote

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就可以了
_________________
Linux simply sucks.

---- a Linux user (1996 - 2006)
Back to top
View user's profile Send private message
EricHsu
Moderator
Moderator


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Tue Dec 21, 2004 5:49 am    Post subject: Re: 中文locale问题求助 Reply with quote

ahaau wrote:
gentoo怎么有这么低级的字体错误?


呵呵, 请不要因为自己的设置上的问题而怪罪于 gentoo ;)
看看我刚写完的这个帖子, 或许对你有帮助.
_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
ahaau
n00b
n00b


Joined: 19 Dec 2004
Posts: 25

PostPosted: Wed Dec 22, 2004 3:04 am    Post subject: 还是不明白 Reply with quote

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
View user's profile Send private message
shyokou
n00b
n00b


Joined: 16 Dec 2004
Posts: 4

PostPosted: Wed Dec 22, 2004 3:52 am    Post subject: Locale is more than you have seen Reply with quote

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
View user's profile Send private message
ahaau
n00b
n00b


Joined: 19 Dec 2004
Posts: 25

PostPosted: Wed Dec 22, 2004 4:07 am    Post subject: how to? Reply with quote

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
View user's profile Send private message
EricHsu
Moderator
Moderator


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Wed Dec 22, 2004 1:10 pm    Post subject: Reply with quote

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:

Code:

$ locale -a


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
View user's profile Send private message
meteozwh
n00b
n00b


Joined: 27 May 2003
Posts: 38

PostPosted: Fri Dec 24, 2004 5:11 pm    Post subject: Reply with quote

ahaau,这个问题是出在这里,gvim所用的菜单,文字编码都是utf8的,如果你使用zh_CN.utf8的区域设置,就会看到gvim的菜单显示正常了。如果你不想切换区域设置,用这个办法也可以:
Code:
LC_ALL="zh_CN.utf8" gvim

不过这样可能会有其他问题,比如建立的中文文件不能顺利阅读,我最后的选择就是用英文版或者不用gvim。
Back to top
View user's profile Send private message
ahaau
n00b
n00b


Joined: 19 Dec 2004
Posts: 25

PostPosted: Thu Jan 13, 2005 4:53 pm    Post subject: guifontset Reply with quote

好象不是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
View user's profile Send private message
blackwhite
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 250

PostPosted: Mon Feb 14, 2005 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum