GTK applications behave weird if locale is set to anything other than "C"

Yves de Champlain yves at macports.org
Thu Mar 15 14:27:14 PDT 2007


Le 07-03-15 à 17:03, Rolf Schäuble a écrit :

> Hello,
>
> I've come across a pretty weird problem:
>
> At first, I noticed that the "open file" dialog of Gimp didn't show  
> files and directories in alphabetical order (I clicked on the  
> column header a few times to make sure that the dialog actually try  
> to sort by file name).
> I also noticed that two menus were missing (skript-fu and python-fu).
> As that time, my locale was set to de_DE.UTF-8.
>
> Then I changed LANG/LC_ALL to C. Suddenly the order of files in the  
> "open file" dialog was correct, and Gimp displayed the two missing  
> menus. It seems that of all locales, only C works. de_DE (without  
> the UTF-8 part) didn't work, and neither did en_US or en_GB.
>
> I could find the same issue in gnucash. Only with the C locale did  
> the "open file" dialog display files in the correct order.
>
> My MacPorts packages are quite up-to-date (I did a full upgrade  
> yesterday after finding the problem, but upgrading didn't change  
> anything).
>
> Does anyone have some ideas, or hints of how I could continue  
> narrowing this down?

Hi

first of all, any gtk app will kindly tell you that :

Gtk-WARNING **: Locale not supported by C library.
         Using the fallback C locale.

And the only way of dealing with many problems is indeed to avoid  
localisation.

But I do use LANG=fr and nothing else (no _CA, no LC_ALL) and many  
things do work quite fine, including gimp.

yves




More information about the macports-users mailing list