LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-05-2004, 09:53 AM   #1
qmm
LQ Newbie
 
Registered: Feb 2004
Location: Netherlands
Distribution: Debian
Posts: 5

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locales Problem suma17 Linux From Scratch 2 10-11-2005 02:41 AM
locales apt-get problem thors_hammer123 Debian 2 05-29-2004 11:15 PM
Problem installing locales patiscool Debian 6 05-16-2004 04:05 AM
NFS-shares: Problem with locales/charset. Clemente Linux - Networking 1 01-19-2004 02:24 PM
Xlib problem aeruzcar Linux - General 4 10-31-2003 05:57 AM


All times are GMT -5. The time now is 12:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration