LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Locale not supported by C library (https://www.linuxquestions.org/questions/linux-newbie-8/locale-not-supported-by-c-library-786039/)

klindenberg 01-31-2010 03:30 PM

Locale not supported by C library
 
When I open gedit and also some other applications, I get this message:

(gedit:29595): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

Why is this happening and should I worry about it? It does not seem to affect my subsequent work.

Tinkster 01-31-2010 06:57 PM

Hi,

welcome to LQ!

What distro are you using? What is your current locale? What did
you choose during installation?


Cheers,
Tink

klindenberg 01-31-2010 09:40 PM

I am using Ubuntu 8.04. I have some pretty complex networking and don't dare upgrade because I do not know how to make that work!

When I type 'locale' at the prompt this is what I get:

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_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


I very much appreciate being helped to help myself!

Tinkster 01-31-2010 10:13 PM

Can you verify whether 'language-pack-en-base' is installed?
If it's not - install it please, and then try:
dpkg-reconfigure locales

klindenberg 01-31-2010 10:49 PM

No, it is not installed but when I try to mark it for installation I get the following message:

Could not mark all packages for installation of upgrade
The following packages have unresolvable dependencies. Make sure that all requires repositories are added and enabled in the preferences.

language-pack-en-base:

Depends: language-pack-en but it is not going to be installed

Sigh..... What next?

Thank you so much!
KL

klindenberg 02-01-2010 11:36 AM

Previous post in this thread
 
Please please help!

Tinkster 02-01-2010 04:18 PM

At this stage I'll recommend that you locate & download those packages
manually from a close-by mirror and manually install them using dpkg.



Cheers,
Tink

klindenberg 02-01-2010 05:58 PM

Hi Tink,

A kind soul here helped me solve the problem. It just required uninstalling language-pack-en and reinstalling it. All now is well.

Thanks,
KL

Tinkster 02-01-2010 07:00 PM

Awesome - and well done.



Cheers,
Tink

jspartan 05-02-2013 02:51 PM

I realize this thread is old but had to say thanks to @Tinkster and hopefully make his answer easier to find in the search engines. Out of all of the latest "solutions" I tried over the last couple of hours this 3 year old post fixed it for me.

Thank you sir!

01-31-2010, 10:13 PM
Tinkster
Moderator

Can you verify whether 'language-pack-en-base' is installed?
If it's not - install it please, and then try:
dpkg-reconfigure locales


SOLVED: Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale

LocaleShop 10-24-2018 06:01 PM

LOCPATH environment variable
 
I managed to cause this myself when migrating home directory dot files to a new machine, and I failed to identify the cause for a while on account of searching files for LC_ and not LOC.

The ~/.bashrc file I copied had the following:

Code:

export LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale
(the particular value here was on account of prior experiments with GNU Guix on the old machine; but the relevant fact is simply that the environment variable was set to a now-invalid path.)

This resulted in the following error when running various programs:

Code:

Warning: locale not supported by C library, locale unchanged
And these errors when running 'locale':

Code:

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

Removing (or commenting out) the 'LOCPATH' line resolved my issues.


All times are GMT -5. The time now is 06:52 PM.