You are not logged in.
Pages: 1
there are several posts in this forum with different fixes. this works for me and should for the rest.
i use en_US.UTF-8 so i edited /etc/locale.gen and uncommented:
en_US.UTF-8 UTF-8
then i edited /etc/profile and added:
export LANGUAGE="enUS.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
then changed the rest of the locale settings in /etc/profile to en_US.UTF-8. so now my locale settings in /etc/profile look like:
# Locale settings (find your locale with 'locale -a')
export LANGUAGE="enUS.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
export LC_COLLATE="C"
now generate locales:
root# locale-gen
now when i run 'locale' i get:
LANG=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
and 'locale -a' gives me:
C
en_US.utf8
POSIX
when you edit /etc/locale.gen, make sure you choose the correct locale for you and use the same locale in /etc/profile.
enjoy
Offline
Why so hard?
Just change LOCALE to en_US.UTF-8 in your rc.conf! That's so simple. :-)
BTW, setting LOCALE in rc.conf overrides setting LANG in /etc/profile (because it writes custom locale.sh in /etc/profile.d/).
to live is to die
Offline
Pages: 1