Board logo

标题: linux locale配置文件错误 [打印本页]

作者: linda    时间: 2021-12-30 16:10     标题: linux locale配置文件错误

fedora 23 ssh登陆后提示:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_GB.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_GB.UTF-8): No such file or directory
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_GB.UTF-8): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_GB.UTF-8): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (en_GB.UTF-8): No such file or directory

# cat /etc/locale.conf
LANG="en_GB.UTF-8"


# for unbuntu
# /etc/default/locale
locale-gen en_GB.UTF-8 >/dev/null 2>&1

# for centos
# /etc/locale.conf, fedora 23
localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8 >/dev/null 2>&1

参考:
https://unix.stackexchange.com/questions/140299/locale-gen-command-in-centos6

========================
How would you actually set up GB18030 for Ubuntu?
参考:https://github.com/mintty/wsltty/issues/224

[ 本帖最后由 linda 于 2024-4-16 17:35 编辑 ]




欢迎光临 中神通公司技术论坛 (http://trustcomputing.com.cn/bbs/) Powered by Discuz! 6.0.0