Linux - SoftwareThis 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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.