linux: ubuntu ls: error initializing month strings

Trabla: Chinese version of ubuntu ls: error initializing month strings.

Solving:

1. Open locale settings file

sudo pico /etc/default/locale

#LANG="zh_CN.UTF-8"
#LANGUAGE="zh_CN:zh"
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
LC_NUMERIC="zh_CN"
LC_TIME="zh_CN"
LC_MONETARY="zh_CN"
LC_PAPER="zh_CN"
LC_NAME="zh_CN"
LC_ADDRESS="zh_CN"
LC_TELEPHONE="zh_CN"
LC_MEASUREMENT="zh_CN"
LC_IDENTIFICATION="zh_CN"

2. Change LC_MONETARY="zh_CN" to LC_MONETARY="en_CN"

3. Reboot ubuntu

sudo reboot

No comments:

Post a Comment