LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: waterloo2005

/etc/locale.gen中到底是zh_CN GB2312还是zh_CN.GB2312 GB2312

[复制链接]
发表于 2009-3-2 21:39:08 | 显示全部楼层
这个看你喜欢,我把zh_CN 设成UTF8。
zh_CN.UTF-8 UTF-8
zh_CN.GB2312 GB2312
zh_CN.GBK GBK
zh_CN UTF-8
回复 支持 反对

使用道具 举报

发表于 2009-3-3 00:08:59 | 显示全部楼层
  1. lee@shuge ~ $ cat /etc/locale.gen
  2. # /etc/locale.gen: list all of the locales you want to have on your system
  3. #
  4. # The format of each line:
  5. # <locale> <charmap>
  6. #
  7. # Where <locale> is a locale located in /usr/share/i18n/locales/ and
  8. # where <charmap> is a charmap located in /usr/share/i18n/charmaps/.
  9. #
  10. # All blank lines and lines starting with # are ignored.
  11. #
  12. # For the default list of supported combinations, see the file:
  13. # /usr/share/i18n/SUPPORTED
  14. #
  15. # Whenever glibc is emerged, the locales listed here will be automatically
  16. # rebuilt for you.  After updating this file, you can simply run `locale-gen`
  17. # yourself instead of re-emerging glibc.
  18. en_US ISO-8859-1
  19. en_US.UTF-8 UTF-8
  20. zh_CN GB18030
  21. zh_CN.GB2312 GB2312
  22. zh_CN.GBK GBK
  23. zh_CN.UTF-8 UTF-8
  24. lee@shuge ~ $
复制代码

sudo locale-gen
回复 支持 反对

使用道具 举报

发表于 2009-3-3 01:15:36 | 显示全部楼层
Post by flyinflash;1955144

  1. lee@shuge ~ $ cat .bashrc
  2. # work with X

  3. LANG=en_US.UTF-8
  4. LC_CTYPE=zh_CN.UTF-8
  5. LC_COLLATE=zh_CN.UTF-8
  6. KDE_LANG=en_US

  7. alias ad="sudo sh /home/share/code/shell/config-network-in-zj.sh "
  8. alias sad="sudo pppoe-stop "

  9. alias c="clear "
  10. alias cscope="EDITOR=vim cscope "

  11. alias d="sudo emerge -C "
  12. alias e="sudo emerge -av "

  13. alias g="grep ./* -r -n -e "
  14. alias h="history "

  15. alias lamp="cd; ./lamp.sh "

  16. alias l='ls --color=none'
  17. alias m="make "

  18. alias n="sudo pppoe-start "

  19. alias r="rm -i "
  20. alias s=" sudo "

  21. alias u="sudo emerge --sync "
  22. alias utag="java -jar /home/share/dol/id3iconv-0.2.1.jar -e gbk "

  23. alias z="zhcon --utf8 "

  24. export PATH=$PATH:/home/lee/bin/:/usr/libexec/git-core
  25. echo >> /tmp/t.txt
  26. EDITOR=/usr/bin/emacs

  27. alias cman='man -M /usr/share/man/zh_CN.UTF-8/ '
  28. lee@shuge ~ $
复制代码


除了顽固的但实在的 fcitx 外, 让utf8统一天下。



fcitx的确不能在utf8用,不过也只有gentoo freebsd这样。。

echo >> /tmp/t.txt
''''''''''''''''''''''''''''''''''''''''''''''
这个用来干什么呢? 请教!
回复 支持 反对

使用道具 举报

发表于 2009-3-3 12:21:49 | 显示全部楼层
echo >> /tmp/t.txt

可以不理。
回复 支持 反对

使用道具 举报

发表于 2009-7-9 19:47:06 | 显示全部楼层
留个记号!!!!!!
回复 支持 反对

使用道具 举报

发表于 2009-7-9 20:24:47 | 显示全部楼层
懒人请 ln -sf /usr/share/i18n/SUPPORTED /etc/locale.gen
勤快人请自行查看 /usr/share/i18n/SUPPORTED
回复 支持 反对

使用道具 举报

发表于 2009-7-10 11:32:55 | 显示全部楼层
zh_CN.GB2312 GB2312 <----是正解
其实你只要
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
zh_CN.GB18030 GB18030 (这个可以代替GBK和GB2132, 因为GB18030支持前面的标准)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-10 17:02:47 | 显示全部楼层
我的/usr/share/i18n/SUPPORTED里面是zh_CN GB2312
回复 支持 反对

使用道具 举报

发表于 2009-7-10 17:15:39 | 显示全部楼层
那就看/usr/share/i18n/SUPPORTED的,是不是一样不管。可能是一样的。但是至少/usr/share/i18n/SUPPORTED放在/etc/locale.gen里面一定不会出错。
回复 支持 反对

使用道具 举报

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

本版积分规则

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