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.
Best Answer
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 automatically configure them:
Check your setup, if it's correct then good. But if you have the
LANG=
orLANGUAGE=
settings blank, run this in command line: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, for example:
For manual installation 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 forNUMERIC
andTIME
, you may wish to use"en_NZ.utf-8"
(remember: these are case-sensitive) orLANGUAGE="en_GB.utf-8"
andNUMERIC="en.dk.ISO-8859-15"
. Traveling to New Zealand, I could change the localeLANGUAGE="en.NZ"
. For Germany, I would just need to install the locales pkg for it and input, in terminal, like the examples below:LC_ALL=
may remain empty.