LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
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

Reply
 
Thread Tools Search this Thread
Old 07-09-2004, 05:32 AM   #1
alex.e.c
LQ Newbie
 
Registered: Aug 2003
Location: London, Engerland
Distribution: Debian (kernel 2.6.0)
Posts: 14
Thanked: 0
Question Gtk-WARNING **: Locale not supported by C library


[Log in to get rid of this advertisement]
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
alex.e.c is offline     Reply With Quote
Old 12-06-2006, 11:37 AM   #2
greenleaf
LQ Newbie
 
Registered: Feb 2004
Posts: 20
Thanked: 0
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
greenleaf is offline     Reply With Quote
Old 07-04-2008, 08:54 AM   #3
TheLateJC
Member
 
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80
Thanked: 0
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
TheLateJC is offline     Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"locale not supported by Xlib, locale set to C" Irad Linux - Software 3 06-25-2006 04:59 PM
perl: warning: Please check that your locale settings: Daredevil Linux - Software 1 05-12-2005 11:47 AM
Help : X11 Locale Not Supported pokkie Linux - Software 1 08-02-2004 11:43 AM
Gdk-WARNING **: locale not supported by C library letdoit Slackware 1 05-28-2004 11:47 PM
NEdit: Xlib: locale C not supported slakmagik Linux - Software 2 04-07-2003 03:34 AM


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

Main Menu
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.
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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration