Problem with locales with Xlib
when I start an x-application (like gvim) I get the error:
(gvim:11839): Gdk-WARNING **: locale not supported by Xlib
(gvim:11839): Gdk-WARNING **: can not set locale modifiers
Now, I have seen this problem in some other threads on this and other forums, but I have never seen somebody post a solution.
After some fiddling around I finally found out how to get rid of the warning. When I start a new console and run locale, this is the output:
With these settings I get the error as described above. However if I change LANG like this:
the warning disappears!!!!
In my humble opinion this is very strange behaviour. Especially because the file /usr/share/i18n/SUPPORTED contains the line:
In the format with which the warning is generated??????
Now I have two questions:
1) Is this a bug or some wrong setting of mine?
2) How can I set the LANG variable to the correct value by default. I already have tried adding the line export LANG=en_GB.iso885915 to my /etc/profile, but that doesn't seem to work.
Can anybody help me with this?