GTK applications behave weird if locale is set to anything other than "C"
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? Thanks a lot Rolf
I just noticed that I've left out a bit of important information in my first mail. Sorry about that. I'm running OS x 10.4.9 (the problem appeared with 10.4.8, too) on a Intel MacBook. Is there anything else that would be useful? Best regards Rolf Am 15.03.2007 um 22:03 schrieb Rolf Schäuble:
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?
Thanks a lot Rolf
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
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
participants (2)
-
Rolf Schäuble
-
Yves de Champlain