[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: International characters in xterm



* Alex Malinovich (demonbane@the-love-shack.net) [030616 12:14]:
> On Mon, 2003-06-16 at 07:07, btom@passagen.se wrote:
> > Hi,
> > None of the virtual terminals available on my debian (woody) system are able
> > to display international characters, especially Swedish ones like (å,ä,ö).
> > I used to have the same problem on the console but this disappeared when
> > doing a 
> 
> When you say "virtual terminals" are you referring to an xterm or
> gnome-terminal, or are you referring to the actual virtual terminals on
> the system? (e.g. Alt-F1 through Alt-F6) If you mean the actual virtual
> terminals on the system, (e.g. Alt-F2), then I've been having the same
> problem. If you look back a few days in the list I had a question about
> UTF-8 support. I'm able to get all of the characters just fine in
> gnome-terminal, but when I go to a console, the characters don't show
> up.
> 
> > >dumpkeys (in xterm)
> > Couldnt get a file descriptor referring to the console
> > 
> 
> This is because dumpkeys doesn't work in a graphical shell AFAIK. I have
> the same problem. I thought there was a way to specify the tty with a
> command line option, but I just checked and I don't see one.
> 
> > > perl -pe''
> > perl: warning: Setting locale failed.
> > perl: warning: Please check that your locale settings:
> >         LANGUAGE = "swedish",
> >         LC_ALL = (unset),
> >         LANG = "sv_SE.UTF-8"
> >     are supported and installed on your system.
> 
> You should set LC_ALL to something. Unfortunately, locales doesn't do it
> for you. I just added it to my .bashrc.

Actually, LC_ALL doesn't need to be set (and it probably shouldn't).
For all of the locale environment variables LC_*, LC_ALL overrides any
value that you may have set.  LANG is used as a default.  For example,
my environment looks like this:

wingnut:~% locale
LANG=en_US.UTF-8
LC_CTYPE=ja_JP.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

if I set LC_ALL to anything, I'd lose my ability to have a mainly-
english system, with the ability to input japanese text, and to have my
collation done the old C/Posix way (A-Za-z instead of AaBb--YyZz).
Using the LC_* variables this way is much more flexible than setting
LC_ALL.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
"If you can put it on a T-shirt, it's speech... To enjoin the T-shirts as a
circumvention device is ludicrous." --Robin Gross, EFF staff attorney

Attachment: signature.asc
Description: Digital signature


Reply to: