Léo*_* 준영 6 debian locale raspberry-pi raspbian
我知道如何解决我的语言环境问题?,通过它我无法更改字段LANGUAGE
和LC_ALL
相应的值。我正在我的 Raspberry Pi 3B Raspbian 最新操作系统中设置retropie。我的locale
LANG=en_GB.UTF-8
LANGUAGE= # TODO empty! but should be en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB:UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL= # TODO empty but should be en_GB.UTF-8
Run Code Online (Sandbox Code Playgroud)
操作系统:Raspbian
硬件:Raspberry Pi 3B
编辑/etc/locale.gen
然后取消注释以下行:
en_GB.UTF-8 UTF-8
Run Code Online (Sandbox Code Playgroud)
跑:
locale-gen en_GB.UTF-8 UTF-8
update-locale en_GB.UTF-8 UTF-8
export LANGUAGE=en_GB.UTF-8
export LC_ALL=en_GB.UTF-8
Run Code Online (Sandbox Code Playgroud)
验证一下;locale
:
LANG=en_GB.UTF-8
LANGUAGE=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=en_GB.UTF-8
Run Code Online (Sandbox Code Playgroud)