LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problem with locales with Xlib (https://www.linuxquestions.org/questions/linux-general-1/problem-with-locales-with-xlib-153799/)

qmm 03-05-2004 09:53 AM

Problem with locales with Xlib
 
Hello,

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:
LANG=en_GB.ISO-8859-15
LC_CTYPE="en_GB.ISO-8859-15"
LC_NUMERIC="en_GB.ISO-8859-15"
LC_TIME="en_GB.ISO-8859-15"
LC_COLLATE="en_GB.ISO-8859-15"
LC_MONETARY="en_GB.ISO-8859-15"
LC_MESSAGES="en_GB.ISO-8859-15"
LC_PAPER="en_GB.ISO-8859-15"
LC_NAME="en_GB.ISO-8859-15"
LC_ADDRESS="en_GB.ISO-8859-15"
LC_TELEPHONE="en_GB.ISO-8859-15"
LC_MEASUREMENT="en_GB.ISO-8859-15"
LC_IDENTIFICATION="en_GB.ISO-8859-15"
LC_ALL=

With these settings I get the error as described above. However if I change LANG like this:

export LANG=en_GB.iso885915

the warning disappears!!!!

In my humble opinion this is very strange behaviour. Especially because the file /usr/share/i18n/SUPPORTED contains the line:

en_GB ISO-8859-1

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?

Greetings,

Quint.


All times are GMT -5. The time now is 07:35 AM.