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. |
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 |
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 |
On some distributions this simpler command might also help,
Code:
dpkg-reconfigure locales |
Quote:
|
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 |
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:48 AM. |