Actually, your problem has made me curious. Here's another official Gentoo document:
Using UTF-8 with Gentoo. Notice it refers to UTF-8, not UTF8. So I think the correct locale should be defined as en_GB.UTF-8. I imagine that it does not matter whether one's installation uses en_GB.UTF-8 or en_GB.UTF8 (or en_GB.utf8, come to that), providing that it's done consistently throughout all config files and that the form of locale chosen has also been created using the locale-gen or localedef commands (see the Gentoo links I gave). Looking in my config files:
- Code: Select all
# cat /etc/locale.gen
en_US.UTF-8 UTF-8
en_US ISO-8859-1
en_GB.UTF-8 UTF-8
en_GB ISO-8859-1
# cat /etc/env.d/02locale
LANG="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LANGUAGE="en_GB.UTF-8"
GDM_LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
SYSFONT="latarcyrheb-sun16"
# cat ~/.bashrc
#
I've just remembered that, when I last installed SL, I hacked /etc/profile to force the en_GB locale because the Thunderbird e-mail client would not display the date in UK format, despite me having set up the locale to en_GB via the Installer and KDE System Settings, so I added the following at the end of the /etc/profile file:
- Code: Select all
# Following three lines added by Fitzcarraldo on 30.03.10 to get Thunderbird to display UK date format:
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF8"
LANGUAGE="en_GB.UTF8"
I see now that I made an error and assigned LANG as en_GB.UTF-8 but LC_ALL and LANGUAGE as en_GB.UTF8. So I'm going to fix what I've done in /etc/profile (i.e. set LC_ALL and LANGUAGE en_GB.UTF-8) and reboot to see what happens.
EDIT: Yep, I'm consistent now:
- Code: Select all
$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=en_GB.UTF-8
I'm not sure why locale -a returns en_GB.utf8, though.