Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I didn't get an answer but I wasn't doing anything and this is an interesting topic. In Ubuntu 12.04, when opening a file in gedit or if I am working on the command line in dpkg, I get returned the error "locale not supported, falling back to default "C" libraries", and the one below,

Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
share|improve this question
    
Your locales appear to be broken. How did you install Ubuntu exactly? It seems like you installed it in a way that locales aren't configured properly. Please provide some more information regarding that in your question (edit it). And no, the C locale is where it falls back to if no localisation is available. It's from the C programming language. –  gertvdijk Oct 16 '13 at 8:55
    
thanks for the reply. My Ubuntu install is a folder inside of the Windows directory. I know why I installed it there. I was lazy at install and allowed the Linux demon do that part for me. –  Diogenes Lantern Oct 16 '13 at 9:03
add comment

1 Answer

up vote 3 down vote accepted

First make sure your library language is installed sudo apt-get install language-pack-en-base, for example,

then as superuser shorten the work by allowing Ubuntu to configure them.

sudo dpkg-reconfigure locales

Check up your setup and if correct good, if you have the LANG= or LANGUAGE= settings blank, in command line, run:

locale -a

Which generates the locales installed and available to you.

Choose the locale from the output generated that fits your situation, and export that setting to replace your locales:

export LC_ALL="en.utf-8" ,for example.

Manual install: The answer is to use export to set Locale by hand which will manually install custom locales, first run the set up as above,:

Then, say you want to install "en_us-8" for language but have need for another locale for NUMERIC and TIME, you may wish to use "en_NZ.utf-8" or and these are case sensitive, so yours could be different; such as LANGUAGE="en_GB.utf-8" or NUMERIC="en.dk.ISO-8859-15"; travelling to New Zealand, I could change Locale LANGUAGE=to "en.NZ, for Germany I would just need to install the locales pkg from that country and input, in terminal, the codes as below.

export LC_ALL="en_US
export LANG="en_US"
export LANGUAGE="en_NZ"
export C_CTYPE="en_US"
export LC_NUMERIC=
export LC_TIME=en"en_US",...
.
.
.etc...

LC_ALL= may remain empty.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.