Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
locale-gen error (solved)
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
coolone
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 278

PostPosted: Mon Nov 20, 2006 8:04 pm    Post subject: locale-gen error (solved) Reply with quote

Sorry i just installed gentoo, cannot tpye chinese word at the moment.
so hope some one can help here,


locale-gen
Quote:
> * (3/5) Generating zh_CN.GB18030 ...
> /usr/share/i18n/locales/zh_CN:68: LC_MONETARY: unknown character in field `currency_symbol'
> /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
> /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
> /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
> /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
> /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
> /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
> /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
> /usr/share/i18n/locales/zh_CN:99: LC_TIME: unknown character in field `day'
> /usr/share/i18n/locales/zh_CN:100: LC_TIME: unknown character in field `day'
> /usr/share/i18n/locales/zh_CN:101: LC_TIME: unknown character in field `day'
> /usr/share/i18n/locales/zh_CN:102: LC_TIME: unknown character in field `day'
> /usr/share/i18n/locales/zh_CN:103: LC_TIME: unknown character in field `day'
> /usr/share/i18n/locales/zh_CN:104: LC_TIME: unknown character in field `day'
> /usr/share/i18n/locales/zh_CN:105: LC_TIME: unknown character in field `day'
> /usr/share/i18n/locales/zh_CN:107: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:107: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:108: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:108: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:109: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:109: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:110: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:110: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:111: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:111: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:112: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:112: LC_TIME: unknown character in field `abmon'
/usr/share/i18n/locales/zh_CN:114: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:114: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:114: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:115: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:115: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:115: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:116: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:116: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:116: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:117: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:117: LC_TIME: unknown character in field `mon'
/usr/share/i18n/locales/zh_CN:121: LC_TIME: unknown character in field `d_t_fmt'
/usr/share/i18n/locales/zh_CN:123: LC_TIME: unknown character in field `d_fmt'
/usr/share/i18n/locales/zh_CN:125: LC_TIME: unknown character in field `t_fmt'
/usr/share/i18n/locales/zh_CN:127: LC_TIME: unknown character in field `am_pm'
/usr/share/i18n/locales/zh_CN:127: LC_TIME: unknown character in field `am_pm'
/usr/share/i18n/locales/zh_CN:129: LC_TIME: unknown character in field `t_fmt_ampm'
/usr/share/i18n/locales/zh_CN:133: LC_TIME: unknown character in field `date_fmt'
/usr/share/i18n/locales/zh_CN:141: LC_MESSAGES: unknown character in field `yesexpr'
/usr/share/i18n/locales/zh_CN:142: LC_MESSAGES: unknown character in field `noexpr'
/usr/share/i18n/locales/zh_CN:161: LC_NAME: unknown character in field `name_miss'
/usr/share/i18n/locales/zh_CN:162: LC_NAME: unknown character in field `name_mr'
/usr/share/i18n/locales/zh_CN:163: LC_NAME: unknown character in field `name_mrs'
/usr/share/i18n/locales/zh_CN:164: LC_NAME: unknown character in field `name_ms'
/usr/share/i18n/locales/zh_CN:173: LC_ADDRESS: unknown character in field `country_name'
/usr/share/i18n/locales/zh_CN:180: LC_ADDRESS: unknown character in field `lang_
name'
LC_MESSAGES: value for field `yesexpr' must not be an empty string
LC_MESSAGES: value for field `noexpr' must not be an empty string [ !! ]
* (4/5) Generating zh_CN.GBK ...
cannot open locale definition file `GBK': No such file or directory [ !! ]
* (5/5) Generating zh_CN.GB2312 ...
cannot open locale definition file `GB2312': No such file or directory [ !! ]
* Bad entry in locale.gen: 'UTF-8 '; skipping
* Generation complete

actually, i can find those 3 files incls in /usr/share/i18n/charmaps/
GB18030.gz
GB2312.gz
GBK.gz
if i change the name GBK.gz to zh_CN GBK.gz (/usr/share/i18n/charmaps/)



Quote:
localhost locales # locale-gen
* Generating 5 locales (this might take a while) with 1 jobs
* (1/5) Generating en_US.ISO-8859-1 ... [ ok ]
* (2/5) Generating en_US.UTF-8 ... [ ok ]
* (3/5) Generating zh_CN.GB18030 ... [ ok ]
* (4/5) Generating zh_CN.GBK ...
cannot open locale definition file `GBK': No such file or directory [ !! ]
* (5/5) Generating zh_CN.GB2312 ...
cannot open locale definition file `GB2312': No such file or directory [ !! ]
* Bad entry in locale.gen: 'UTF-8 '; skipping
* Generation complete


the this modifation seems affected the file zh_CN.GB18030 ... not on zh_CN.GBK
thats strange.....

how to solve this annoying problem?!
cannot type chinese right here, sorri!
thank in adv.


Last edited by coolone on Mon Nov 20, 2006 8:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
coolone
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 278

PostPosted: Mon Nov 20, 2006 8:30 pm    Post subject: Reply with quote

thats great, i sorted out,
the problem was the file /etc/locae.gen
the code name should correspond to the file name which are located /usr/share/i18n/charmaps/

tho, what i think this page gives little bit wrong info, so I've changed the page.
if u find something wrong with this section which i motified, u probably change it back to original look like.
http://zh.gentoo-wiki.com/HOWTO_%E4%B8%AD%E6%96%87%E8%BE%93%E5%85%A5%E6%B3%95%E7%94%A8%E4%BA%8E%E8%8B%B1%E6%96%87%E7%95%8C%E9%9D%A2#.E8.AE.BE.E7.BD.AElocale

Quote:

en_US ISO-8859-1 ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030 GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8


original :

Code:
gedit /etc/locale.gen
代码: File:/etc/locale.gen

en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8
Back to top
View user's profile Send private message
coolone
Apprentice
Apprentice


Joined: 14 Nov 2006
Posts: 278

PostPosted: Mon Nov 20, 2006 8:36 pm    Post subject: Reply with quote

Quote:
* Generating 6 locales (this might take a while) with 1 jobs
* (1/6) Generating en_US.ISO-8859-1 ... [ ok ]
* (2/6) Generating en_US.UTF-8 ... [ ok ]
* (3/6) Generating zh_CN.GB18030 ... [ ok ]
* (4/6) Generating zh_CN.GBK ... [ ok ]
* (5/6) Generating zh_CN.GB2312 ... [ ok ]
* (6/6) Generating zh_CN.UTF-8 ... [ ok ]
* Generation complete



coolone wrote:
thats great, i sorted out,
the problem was the file /etc/locae.gen
the code name should correspond to the file name which are located /usr/share/i18n/charmaps/

tho, what i think this page gives little bit wrong info, so I've changed the page.
if u find something wrong with this section which i motified, u probably change it back to original look like.
http://zh.gentoo-wiki.com/HOWTO_%E4%B8%AD%E6%96%87%E8%BE%93%E5%85%A5%E6%B3%95%E7%94%A8%E4%BA%8E%E8%8B%B1%E6%96%87%E7%95%8C%E9%9D%A2#.E8.AE.BE.E7.BD.AElocale

Quote:

en_US ISO-8859-1 ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030 GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8


original :

Code:
gedit /etc/locale.gen
代码: File:/etc/locale.gen

en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8
Back to top
View user's profile Send private message
dragonlinux
n00b
n00b


Joined: 21 Nov 2006
Posts: 16

PostPosted: Wed Nov 22, 2006 10:21 pm    Post subject: Reply with quote

but I didn't see zh_CN.GB18030. in your code is zh_CN GB18030 GB18030. I didn't see "." between
"zh_CN" and "GB18030".

in locale.gen it explains very well. first part is something located /usr/share/i18n/locale, second part is under /usr/share/i18n/charmaps.

it is very important to generate these for chinese environment first.

I am a new gentoo user.
Back to top
View user's profile Send private message
akar
Moderator
Moderator


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Fri Nov 24, 2006 1:22 am    Post subject: Reply with quote

  各位好:

  大家都這麼關心 GNU/Linux 下的基礎程式庫對中文的支持情況,相信不會看不懂中文的回覆吧? :)


  這 glibc 的附帶文件的部份,我只列出中文支持的內容:
/usr/share/i18n/SUPPORTED wrote:

zh_CN.GB18030 GB18030
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
zh_CN GB2312
zh_HK.UTF-8 UTF-8
zh_HK BIG5-HKSCS
zh_SG.UTF-8 UTF-8
zh_SG.GBK GBK
zh_SG GB2312
zh_TW.EUC-TW EUC-TW
zh_TW.UTF-8 UTF-8
zh_TW BIG5


  可以看得出來,目前共有四大中文使用地區(CN, HK, SG, TW)。再細心觀看,可能你會看到每個地區有有一行是特別一點的,那個特別一點就是沒有“一點”( FULL STOP SIGN)。 例如 第四行的 中國(zh_CN) 的 zh_CN GB2312,這是在沒有其它更詳細的中文編號指定之時,用的就是 GB2312。那如果我指定是 .GB18030 那就用它。


  而 /etc/locale.gen 其實只要用以下方式,便可以產生出來:

Code:
# grep zh_CN /usr/share/i18n/SUPPORTED >> /etc/locale.gen




網絡資源
-----------
  感興趣者,請細閱:  我 (謝東翰) 和小虫 (鄭原忠) ... 深入探討 GNU/Linux 系統下的 I18N 問題
_________________
AKar
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