LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 784|回复: 7

get wrong when locale-gen

[复制链接]
发表于 2006-8-6 12:39:46 | 显示全部楼层 |阅读模式
when i using locale-gen to gen my locale. i get message like this :


  1. Generating locales...
  2. ... doneUTF-8
  3. .../usr/share/i18n/locales/zh_CN:68: LC_MONETARY: unknown character in field `currency_symbol'
  4. /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
  5. /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
  6. /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
  7. /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
  8. /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
  9. /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
  10. /usr/share/i18n/locales/zh_CN:97: LC_TIME: unknown character in field `abday'
  11. /usr/share/i18n/locales/zh_CN:99: LC_TIME: unknown character in field `day'
  12. /usr/share/i18n/locales/zh_CN:100: LC_TIME: unknown character in field `day'
  13. /usr/share/i18n/locales/zh_CN:101: LC_TIME: unknown character in field `day'
  14. /usr/share/i18n/locales/zh_CN:102: LC_TIME: unknown character in field `day'
  15. /usr/share/i18n/locales/zh_CN:103: LC_TIME: unknown character in field `day'
  16. /usr/share/i18n/locales/zh_CN:104: LC_TIME: unknown character in field `day'
  17. /usr/share/i18n/locales/zh_CN:105: LC_TIME: unknown character in field `day'
  18. /usr/share/i18n/locales/zh_CN:107: LC_TIME: unknown character in field `abmon'
  19. /usr/share/i18n/locales/zh_CN:107: LC_TIME: unknown character in field `abmon'
  20. /usr/share/i18n/locales/zh_CN:108: LC_TIME: unknown character in field `abmon'
  21. /usr/share/i18n/locales/zh_CN:108: LC_TIME: unknown character in field `abmon'
  22. /usr/share/i18n/locales/zh_CN:109: LC_TIME: unknown character in field `abmon'
  23. /usr/share/i18n/locales/zh_CN:109: LC_TIME: unknown character in field `abmon'
  24. /usr/share/i18n/locales/zh_CN:110: LC_TIME: unknown character in field `abmon'
  25. /usr/share/i18n/locales/zh_CN:110: LC_TIME: unknown character in field `abmon'
  26. /usr/share/i18n/locales/zh_CN:111: LC_TIME: unknown character in field `abmon'
  27. /usr/share/i18n/locales/zh_CN:111: LC_TIME: unknown character in field `abmon'
  28. /usr/share/i18n/locales/zh_CN:112: LC_TIME: unknown character in field `abmon'
  29. /usr/share/i18n/locales/zh_CN:112: LC_TIME: unknown character in field `abmon'
  30. /usr/share/i18n/locales/zh_CN:114: LC_TIME: unknown character in field `mon'
  31. /usr/share/i18n/locales/zh_CN:114: LC_TIME: unknown character in field `mon'
  32. /usr/share/i18n/locales/zh_CN:114: LC_TIME: unknown character in field `mon'
  33. /usr/share/i18n/locales/zh_CN:115: LC_TIME: unknown character in field `mon'
  34. /usr/share/i18n/locales/zh_CN:115: LC_TIME: unknown character in field `mon'
  35. /usr/share/i18n/locales/zh_CN:115: LC_TIME: unknown character in field `mon'
  36. /usr/share/i18n/locales/zh_CN:116: LC_TIME: unknown character in field `mon'
  37. /usr/share/i18n/locales/zh_CN:116: LC_TIME: unknown character in field `mon'
  38. /usr/share/i18n/locales/zh_CN:116: LC_TIME: unknown character in field `mon'
  39. /usr/share/i18n/locales/zh_CN:117: LC_TIME: unknown character in field `mon'
  40. /usr/share/i18n/locales/zh_CN:117: LC_TIME: unknown character in field `mon'
  41. /usr/share/i18n/locales/zh_CN:117: LC_TIME: unknown character in field `mon'
  42. /usr/share/i18n/locales/zh_CN:121: LC_TIME: unknown character in field `d_t_fmt'
  43. /usr/share/i18n/locales/zh_CN:123: LC_TIME: unknown character in field `d_fmt'
  44. /usr/share/i18n/locales/zh_CN:125: LC_TIME: unknown character in field `t_fmt'
  45. /usr/share/i18n/locales/zh_CN:127: LC_TIME: unknown character in field `am_pm'
  46. /usr/share/i18n/locales/zh_CN:127: LC_TIME: unknown character in field `am_pm'
  47. /usr/share/i18n/locales/zh_CN:129: LC_TIME: unknown character in field `t_fmt_ampm'
  48. /usr/share/i18n/locales/zh_CN:133: LC_TIME: unknown character in field `date_fmt'
  49. /usr/share/i18n/locales/zh_CN:141: LC_MESSAGES: unknown character in field `yesexpr'
  50. /usr/share/i18n/locales/zh_CN:142: LC_MESSAGES: unknown character in field `noexpr'
  51. /usr/share/i18n/locales/zh_CN:161: LC_NAME: unknown character in field `name_miss'
  52. /usr/share/i18n/locales/zh_CN:162: LC_NAME: unknown character in field `name_mr'
  53. /usr/share/i18n/locales/zh_CN:163: LC_NAME: unknown character in field `name_mrs'
  54. /usr/share/usr/share/i18n/locales/zh_CN:142: LC_MESSAGES: unknown character in field `noexpr'
  55. /usr/share/i18n/locales/zh_CN:161: LC_NAME: unknown character in field `name_miss'
  56. /usr/share/i18n/locales/zh_CN:162: LC_NAME: unknown character in field `name_mr'
  57. /usr/share/i18n/locales/zh_CN:163: LC_NAME: unknown character in field `name_mrs'
  58. /usr/share/i18n/locales/zh_CN:164: LC_NAME: unknown character in field `name_ms'
  59. /usr/share/i18n/locales/zh_CN:173: LC_ADDRESS: unknown character in field `country_name'
  60. /usr/share/i18n/locales/zh_CN:180: LC_ADDRESS: unknown character in field `lang_name'
  61. LC_MESSAGES: value for field `yesexpr' must not be an empty string
  62. LC_MESSAGES: value for field `noexpr' must not be an empty string
  63. /i18n/locales/zh_CN:164: LC_NAME: unknown character in field `name_ms'
  64. /usr/share/i18n/locales/zh_CN:173: LC_ADDRESS: unknown character in field `country_name'
  65. /usr/share/i18n/locales/zh_CN:180: LC_ADDRESS: unknown character in field `lang_name'
  66. LC_MESSAGES: value for field `yesexpr' must not be an empty string
  67. LC_MESSAGES: value for field `noexpr' must not be an empty string
复制代码


and my /etc/locale.gen file was set like this:

  1. en_US.UTF8 UTF-8
  2. zh_CN.UTF8 UTF-8
  3. zh_CN.GBK GBK
  4. zh_CN.GB2312 GB2312
  5. zh_CN.GB18030 GB18030
复制代码


what's wrong with my setting. who can help me??:help
 楼主| 发表于 2006-8-6 23:05:22 | 显示全部楼层
我自己搞定了。原来是locale.gen文件有问题啊。
回复 支持 反对

使用道具 举报

发表于 2006-8-6 23:37:07 | 显示全部楼层
我更加厉害,干脆找不到/etc/locale.gen文件和locale-gen命令了。
回复 支持 反对

使用道具 举报

发表于 2006-8-6 23:53:18 | 显示全部楼层
不至于吧,这么严重呀...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-7 00:16:25 | 显示全部楼层
我刚装完的时候只是没有了locale.gen文件。后来自己在glibc的pkg里找到一个locale.gen文件
回复 支持 反对

使用道具 举报

发表于 2006-8-7 00:59:08 | 显示全部楼层
后来自己在glibc的pkg里找到一个locale.gen文件?!
怎么找?那locale-gen命令怎么办?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-7 09:40:43 | 显示全部楼层
用tat -zxvf glibc-2.3.6-3.pkg.tar.gz命令把glibc-2.3.6-3.pkg.tar.gz解开,glibc-2.3.6-3.pkg/etc/下就有一个locale.gen文件了。但是locale-gen我就不知道在哪了
回复 支持 反对

使用道具 举报

发表于 2006-8-7 12:40:07 | 显示全部楼层
是在glibc里面的

pacman -Ql glibc | grep locale-gen
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表