打 locale 看到 LANGUAGE & LC_ALL 沒有定義, 另外有 3 個警告
debian@arm:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
debian@arm:~$
打 locale -a 可看到目前已經安裝語系.
debian@arm:~$ locale -a
C
C.UTF-8
POSIX
sudo nano /etc/default/locale
改 LANG=C.UTF-8
加 LANGUAGE=C.UTF-8
LC_ALL=C
若是要增加語系, 則用
locale-gen en_US.UTF-8
dpkg-reconfigure locales
沒有留言:
張貼留言