topic title: setting lang locale
Posts: 903
plvera
Joined: 11 Oct 2008
#1
Hello:
After noticing some inconsistencies typing foreign characters in different terminals, I noticed that UTF-8 was not my default locale. So, I ran dpk-locale and chose only us_en UTF-8. However, when I type locale in a terminal I get:

pedro@mepis1:~$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

So, it appears that my language isn't set at all, let alone the UTF-8. Any suggestions on how to fix this?
thanks.
Pedro
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
I have this line in my .bashrc file.

export LANG="en_US.UTF-8"
Posts: 903
plvera
Joined: 11 Oct 2008
#3
Anti,
thanks. I had added that line to my .profile file but it did not fix the problem. Your suggestion solved this issue.
Pedro
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#4
plvera, try running this as root:

dpkg-reconfigure locales

eerie pointed me to this sometime ago and it worked when the mepis assistant wouldn't. I've used it many times now and has always worked for me.