Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-09-2004, 04:32 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Location: London, Engerland
Distribution: Debian (kernel 2.6.0)
Posts: 14
Rep:
|
Gtk-WARNING **: Locale not supported by C library
Each time I try and run an application on my Debian install after a dist upgrade it complains about the language being all wrong. Has anyone else bumped into this problem? It currently means that I cannot run certain programs (ones that rely on gtk).
Code:
(process:1935): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(straw:1935): Gdk-WARNING **: locale not supported by C library Traceback (most recent call last): File "/usr/bin/straw", line 17, in ? s = straw.Main() File "/usr/lib/straw/straw/Main.py", line 41, in __init__ self._setlocale() File "/usr/lib/straw/straw/Main.py", line 105, in _setlocale locale.setlocale(locale.LC_ALL, '') File "/usr/lib/python2.3/locale.py", line 381, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting
|
|
|
12-06-2006, 10:37 AM
|
#2
|
Member
Registered: Feb 2004
Location: Chester, UK
Distribution: Linux From Scratch. 64 bit. Kernel 5.8.3. Fluxbox.
Posts: 53
Rep:
|
locale not supported by C library
Hi -
I've just rebuilt my glibc (don't try that unless you are a bit mad - its very easy to get it wrong and end up with an unusable system). I needed the new posix compliant threading stuff. But the point is that after I did that I ran into very similar problems to the one you reported. The Google located suggestions of altering environment variables didn't help at all. But at last I stumbled across localedef, which is a command line function for compiling the locale definition files. In my case what I needed was
localedef -c -f iso885915 -i en_GB en_GB.iso885915
run as super-user.
That has done the trick for me. I'm not quite sure whether its persistent, because I haven't rebooted the system. But one sure sign is that if you run
locale
or
locale -a
and it moans, then there is something wrong.
Well locale works fine now, and the Gtk warnings have stopped.
I hope that helps someone else.
Greenleaf
|
|
1 members found this post helpful.
|
07-04-2008, 07:54 AM
|
#3
|
Member
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80
Rep:
|
And still good value after all these years
Thanks champ, this sorted a locale annoyance I'd been having on Ubuntu...
localedef -c -f iso88591 -i en_US en_US.ISO-8859-1
|
|
|
04-13-2011, 12:29 PM
|
#4
|
LQ Newbie
Registered: Feb 2005
Posts: 16
Rep:
|
On some distributions this simpler command might also help,
Code:
dpkg-reconfigure locales
|
|
2 members found this post helpful.
|
06-21-2011, 06:59 AM
|
#5
|
Member
Registered: Nov 2008
Distribution: Ubuntu Maverick
Posts: 31
Rep:
|
Quote:
Originally Posted by louisgag
On some distributions this simpler command might also help,
Code:
dpkg-reconfigure locales
|
Thank you for that command. I was facing the same issue after generating a lot of locale definition files with locale-gen (I did Ctrl-C a few times which probably resulted in corrupted locale definition files). That 'dpkg-reconfigure' command recompiled all the locales I had previously compiled which solved the problem. 
|
|
1 members found this post helpful.
|
08-08-2014, 01:47 PM
|
#6
|
LQ Newbie
Registered: Jan 2007
Distribution: Ubuntu Edgy
Posts: 7
Rep:
|
Impossible locale combo?
Hello,
I had this problem because my system tried to run with the locale "sv_US".
Once I installed Swedish (sv) language support completely I got things running.
Check by running "locale" in the command prompt. The locales set there should be something possible (unlike sv_US...)
/E
Last edited by erikalm; 08-08-2014 at 01:48 PM.
|
|
|
08-11-2014, 02:55 PM
|
#7
|
Member
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 14.1 kernel 4.1.13 gcc 4.8.2
Posts: 246
Rep:
|
I have this problem under Slackware 13.37. It's more of an annoyance as the lib falls back to the C locale method. Apparently the Locale stuff never got installed correctly. The environment varibles have no effect.
|
|
|
All times are GMT -5. The time now is 07:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|