Skip to content

Instantly share code, notes, and snippets.

@coder4web
Last active November 27, 2015 09:51
Show Gist options
  • Save coder4web/5fe1bb155d8957558911 to your computer and use it in GitHub Desktop.
Save coder4web/5fe1bb155d8957558911 to your computer and use it in GitHub Desktop.
Locales in Debian
# @see https://people.debian.org/~schultmc/locales.html
# @see http://badyblog.com/ustanovka-utf-8-rusifikaciya-konsoli-v-debian/
# perl: warning: Please check that your locale settings:
# locale: Cannot set LC_ALL to default locale: No such file or directory
locale
sudo dpkg-reconfigure locales
#138. en_US.UTF-8 UTF-8
#349. ru_RU.UTF-8 UTF-8
#Generating locales (this might take a while)...
# en_US.UTF-8... done
# ru_RU.UTF-8... done
#Generation complete.
# check if well done
perl -e exit
# --------------------
# localepurge
# --------------------
sudo apt-get install localepurge
sudo dpkg-reconfigure localepurge
#en ru
sudo localepurge
# --------------------
# you dont need it usually :)
# --------------------
ls /etc/default/locale
sudo nano /etc/default/locale
>LANG=en_US.UTF-8
>#LC_ALL=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# MORE
#/etc/locale.gen
#locale-gen en_US.UTF-8
#locale-gen ru_RU.UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment