Debian
如何在 Raspbian 中設置 LC_ALL=en_GB.UTF-8?
我知道執行緒中的答案如何解決我的語言環境問題?,通過它我無法更改欄位
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
作業系統:Raspbian
硬體:Raspberry Pi 3B
編輯
/etc/locale.gen
然後取消註釋以下行:en_GB.UTF-8 UTF-8
跑:
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
驗證它;
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