Unsupported locale prevents me from starting apps

1

I have the following locale settings when I type export:

declare -x LANG="es_ES.ISO-8859-1"
declare -x LANGUAGE="es:en"
declare -x LC_ADDRESS="ms_MY.UTF-8"
declare -x LC_IDENTIFICATION="ms_MY.UTF-8"
declare -x LC_MEASUREMENT="ms_MY.UTF-8"
declare -x LC_MONETARY="ms_MY.UTF-8"
declare -x LC_NAME="ms_MY.UTF-8"
declare -x LC_NUMERIC="ms_MY.UTF-8"
declare -x LC_PAPER="ms_MY.UTF-8"
declare -x LC_TELEPHONE="ms_MY.UTF-8"
declare -x LC_TIME="ms_MY.UTF-8"

I am Spanish living in Malaysia, so I actually want my system in Spanish but with the country setup for Malaysia. I actually don't know whether I have set it up right or not.

Now, I try to launch a recently installed application, git-gui (amongst some others), and I just get the following error message:

$ git-gui
We are sorry, command-not-found failed! Please send a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please attach the following info to the report:

command-not-found version: 0.3
Python version: 3.3.1 final 0
Distributor ID: Ubuntu
Description:    Ubuntu 13.04
Release:        13.04
Codename:       raring
Exception information:

unsupported locale setting
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 69, in main
    enable_i18n()
  File "/usr/lib/command-not-found", line 40, in enable_i18n
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python3.3/locale.py", line 541, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

So how can I fix my locales? What would be the right setup for my system to match my requirements and also the requirements of applications such as git-gui?

Jago

Posted 2013-09-25T02:16:27.257

Reputation: 305

You might have more luck at http://askubuntu.com/ but I would clarify if you are running Ubuntu or Kubuntu.

– Ramhound – 2013-09-25T04:01:10.767

@Ramhound I guess adding the 2 tags didn't help. Well I am using Kubuntu. I guess I'll try and ask there as well. – Jago – 2013-09-25T08:24:54.817

Don't cross post I would just flag for migration. – Ramhound – 2013-09-25T10:02:21.593

woops... shall i delete then? or maybe you can just delete this one? – Jago – 2013-09-25T10:25:02.037

I would just delete it. While it is indeed on topic askubuntu has Ubuntu experts on it. Be sure you tag it clearly though if you do post it there. – Ramhound – 2013-09-25T11:00:34.930

No answers