[Bug 1322968] Re: Changing country leads to invalid locale

Orasis orasisdimensional at gmail.com
Sun May 25 15:42:17 UTC 2014


Various fresh installations of Kubuntu 14.04 LTS  x64 lead to the same problem.
After install followed by system update (and reboot), I change nothing other than the region to "Greece".
Everything else is left to "US English", keyboard layouts etc. And reboot again.
Then if I open a terminal I get this:

$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GR.UTF-8
LANGUAGE=en
LC_CTYPE="en_GR.UTF-8"
LC_NUMERIC=en_GR.UTF-8
LC_TIME=en_GR.UTF-8
LC_COLLATE="en_GR.UTF-8"
LC_MONETARY=en_GR.UTF-8
LC_MESSAGES="en_GR.UTF-8"
LC_PAPER=en_GR.UTF-8
LC_NAME=en_GR.UTF-8
LC_ADDRESS=en_GR.UTF-8
LC_TELEPHONE=en_GR.UTF-8
LC_MEASUREMENT=en_GR.UTF-8
LC_IDENTIFICATION=en_GR.UTF-8
LC_ALL= 

As mentioned by Dimitris, notice above, the en_GR -- this does not exist in fact. There is el_GR or en_GB but not en_GR.
Now if I add "Greek" to the languages and reboot the systm becomes Greek/English -- a mix of English and Greek (most Greek), although Greek is not 1st in the list.

The only solution (except editing setlocale.sh manually), is to add "British English" and set it 1st in the list.
Only then, after reboot, I get:

$ locale
LANG=en_GB.UTF-8
LANGUAGE=en
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=

But that causes other problems when using ssh to remote computers.
It appears that setlocale.sh file, is generated (or edited) wrongly by the script that runs when changing locale settings through gui. In a way Kubuntu 14.04 so far does not "like" American English" to be 1st in the list of languages when the Country is set to "Greece" or some other (I haven't tested).

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kde-runtime in Ubuntu.
https://bugs.launchpad.net/bugs/1322968

Title:
  Changing country leads to invalid locale

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kde-runtime/+bug/1322968/+subscriptions




More information about the kubuntu-bugs mailing list