LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2010, 03:30 PM   #1
klindenberg
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 1
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.
 
Old 01-31-2010, 06:57 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

welcome to LQ!

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


Cheers,
Tink
 
Old 01-31-2010, 09:40 PM   #3
klindenberg
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 1
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!
 
Old 01-31-2010, 10:13 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Can you verify whether 'language-pack-en-base' is installed?
If it's not - install it please, and then try:
dpkg-reconfigure locales
 
Old 01-31-2010, 10:49 PM   #5
klindenberg
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 1
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
 
Old 02-01-2010, 11:36 AM   #6
klindenberg
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 1
Previous post in this thread

Please please help!
 
Old 02-01-2010, 04:18 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
1 members found this post helpful.
Old 02-01-2010, 05:58 PM   #8
klindenberg
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 1
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
 
1 members found this post helpful.
Old 02-01-2010, 07:00 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Awesome - and well done.



Cheers,
Tink
 
1 members found this post helpful.
Old 05-02-2013, 02:51 PM   #10
jspartan
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 10-24-2018, 06:01 PM   #11
LocaleShop
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gtk-WARNING **: Locale not supported by C library alex.e.c Linux - Software 6 08-11-2014 02:55 PM
"locale not supported by Xlib, locale set to C" Irad Linux - Software 3 06-25-2006 03:59 PM
When running programs: Locale not supported by C library miceagol Linux - General 2 06-02-2006 04:46 PM
locale not supported by C library the bear Linux - General 2 04-03-2006 11:16 AM
Gdk-WARNING **: locale not supported by C library letdoit Slackware 1 05-28-2004 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration