WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Gtk-WARNING **: Locale not supported by C library  (Read 5937 times)

Offline Alain Mouette

  • Newbie
  • *
  • Posts: 6
Gtk-WARNING **: Locale not supported by C library
« on: April 26, 2010, 02:31:07 PM »
I am trying to setup TinyCore with LXDE in portuguese, but for any lx* program that I run I get this:

tc@box:~$ LANG=en pcmanfm2
(process:2615): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale

If I use LANG=C I get no error, but I get this erro for whatever languge: en, de, en_US, pt_BR...

This appears to be something missing in some basic C libray, but google did not help this time. I installed
glib2-locale, glibc-i18n-locale, gtk2-locale but it did not help :(

Please Help!

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Alain Mouette

  • Newbie
  • *
  • Posts: 6
Re: Gtk-WARNING **: Locale not supported by C library
« Reply #2 on: April 27, 2010, 06:06:26 PM »
Thanks, that seems to be exactly my case.

BUT... ther is a problem: localedef is not present. It is listed under glibc-apps but it is not there. Is this a busybox problem? How can I get it?

I am running tinycore_2.10

Offline Alain Mouette

  • Newbie
  • *
  • Posts: 6
Re: Gtk-WARNING **: Locale not supported by C library
« Reply #3 on: April 28, 2010, 10:31:46 AM »
Replying to myself...

This does fix the problem, I created the file /usr/lib/locale/locale-archive and transfered it to TinyCore and it works. Only problem is that there are lots of problems with UTF-8 characters...

The glibc-apps extension seems do be my problem, localedef is not included in TC-2.10. My UTF-8 problems would probably be fixed if I create the file with the propper version utilities.

Please help,
Alain

Offline Alain Mouette

  • Newbie
  • *
  • Posts: 6
Re: Gtk-WARNING **: Locale not supported by C library
« Reply #4 on: April 28, 2010, 05:08:01 PM »
I just found more information about this...

The problem of the missing localedef was because I had too few loops. I added "max_loop=256" to boot command and now I can use it. I have around 95 loops with LXDE.

I still have a problem with UTF-8 chars in LXDE: they are not displayed properly and are repeated about 20 times...

I will revert to a clean image and do it all again, I hope that it will be ok :) but if anyone has any clue, please help!!!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Gtk-WARNING **: Locale not supported by C library
« Reply #5 on: April 28, 2010, 05:20:19 PM »
Could be missing fonts. See if adding a few of the ttf extensions helps.
The only barriers that can stop you are the ones you create yourself.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: Gtk-WARNING **: Locale not supported by C library
« Reply #6 on: April 29, 2010, 02:49:56 AM »
Ah - I was puzzled as to why you couldn't find localedef - at least that's sorted out.

Offline Alain Mouette

  • Newbie
  • *
  • Posts: 6
Re: Gtk-WARNING **: Locale not supported by C library
« Reply #7 on: May 17, 2010, 01:03:20 PM »
Well, finaly I found why localedef was not found, I am writing this as a feedback. I hope that it will be usefull to others :)

The problem was caused because I had not enough "loop" devices to install all the apps and it's locales; The default is 80, but with Lxde and locales I need around 95. I am using this kernel command line and now it works:

tinycore quiet max_loop=256 kmap=br-abnt2 lang=pt_BR.UTF-8