On Saturday 26 June 2010 16:40:53 Dale wrote: > David W Noon wrote: > > On Sat, 26 Jun 2010 13:40:01 +0200, Mick wrote about Re: [gentoo-user] > > Questions regarding the usage of multiple locales: > > > > [snip] > > > >> Hmm... I've added all this in my /etc/env.d/02locale: > >> > >> 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="C" > >> 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" > > > > Did you run env-update afterwards? > > > > I ditched all those /etc/env.d settings for locale, and put mine > > > in /etc/profile.d/local.sh as follows: > << SNIP >> > > Something I run into sometimes, if you are using KDE, log out then log > back in. I run into this pretty regular and usually forget. I have > been sort of half reading this thread and seem to recall reading you are > using KDE. I know this applies to when you change the groups a user is > in. Ran into that the other day. This may apply to other desktops as > well. I only have KDE here. Just thought I would mention just in case.
Thank you all for your suggestions. First of all I'd like to apologise to Christopher because I did not intend to hi-jack his thread (I was hoping I had something basic wrong and was looking for a quick fix). I have run 'env-update && source /etc/profile' after making any change. I have also rebooted for good measure since this thread spanned more than a few days so far. I do not use the full KDE. Instead I use Enlightenment with some KDE applications. I do use kdm to login. The consoles work as expected, but terminals in X do not. They seem to be stuck to (or overwritten by) a US profile for some reason. Running env-update works as far as updating the /etc/profile.env file goes: ======================================== # THIS FILE IS AUTOMATICALLY GENERATED BY env-update. # DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES # GO INTO /etc/profile NOT /etc/profile.env export CONFIG_PROTECT='/usr/share/X11/xkb /usr/share/config' export CONFIG_PROTECT_MASK='/etc/sandbox.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild' export CVS_RSH='ssh' export GCC_SPECS='' export GDK_USE_XFT='1' export ICAROOT='/opt/ICAClient' export INFOPATH='/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux- gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/info' export LANG='en_GB.UTF-8' export LC_ADDRESS='en_GB.UTF-8' export LC_COLLATE='C' export LC_CTYPE='en_GB.UTF-8' export LC_IDENTIFICATION='en_GB.UTF-8' export LC_MEASUREMENT='en_GB.UTF-8' export LC_MESSAGES='en_GB.UTF-8' export LC_MONETARY='en_GB.UTF-8' export LC_NAME='en_GB.UTF-8' export LC_NUMERIC='en_GB.UTF-8' export LC_PAPER='en_GB.UTF-8' export LC_TELEPHONE='en_GB.UTF-8' export LC_TIME='en_GB.UTF-8' [snip ...] ======================================== Out of all the above only LANG takes and is shown as LANG=en_GB.UTF-8, all the rest are shown as ="en_US.UTF-8" in xterm, aterm, urxvt, konsole. Launching xterm from an aterm with -ls or with -lc does not change the output - i.e. xterm does not read .bashrc or /etc/env.d/02locale. So I conluded after Bill kindly hinted, that either kdm or E17 do something different than what I expect with locales, because terminals running in X do not recognise my settings. Looking into KDE systemsettings I see this under Country Selector: "Not set (Generic English)". Also, language is blank - despite the fact that I have set up LINGUAS="en_GB". Setting Country as UK and rebooting did not make any difference with regards to locales, or language (which is still shown blank with English US as the only drop down option). Then I looked into Enlightenment's 'Settings Panel'/Language and noticed that although it had picked up language as English/UK it had not picked up the UTF-8 character set. Selected that, logged out/in and now all my locale settings in terminals show en_GB.UTF-8 (even for LC_COLLATE and LC_ALL). Therefore, it was the desktop manager after all! Thank you very much for your help. PS. Going back to the original thread and the link that Enrico gave, are we meant to set up LANGUAGE separately to LANG? (I thought they were the same). -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.