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. |
Hi,
welcome to LQ! What distro are you using? What is your current locale? What did you choose during installation? Cheers, Tink |
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! |
Can you verify whether 'language-pack-en-base' is installed?
If it's not - install it please, and then try: dpkg-reconfigure locales |
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 |
Previous post in this thread
Please please help!
|
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 |
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 |
Awesome - and well done.
Cheers, Tink |
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 |
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 This resulted in the following error when running various programs: Code:
Warning: locale not supported by C library, locale unchanged Code:
locale: Cannot set LC_CTYPE to default locale: No such file or directory |
All times are GMT -5. The time now is 06:52 PM. |