Debian - как установить locale - en US.UTF-8


Материал из Wiki - Iphoster - 'the best ever support'

Перейти к: навигация, поиск

Debian - как установить locale - en US.UTF-8

# sed -i "s/# ru_RU/ru_RU/" /etc/locale.gen
# sed -i "s/# en_US/en_US/" /etc/locale.gen
# locale-gen en_US.UTF-8
# locale-gen ru_RU.UTF-8
# echo LANG=en_US.UTF-8 > /etc/default/locale
# source /etc/default/locale

Добавляем в 2 файла ~/.bashrc и ~/.profile строки:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
# source ~/.bashrc
# source ~/.profile


Проверяем результат:

# locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
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=en_US.UTF-8
Индекс цитирования