You are not logged in.

#1 2009-03-18 20:47:44

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

xterm has trouble with my character set

I've set up my laptop for my Danish keyboard:
/etc/rc.conf:

LOCALE="en_DK.utf8"
KEYMAP="dk"

And in /etc/hal/fdi/policy/10-keymap.fdi input.xkb.layout is set to dk.

It works flawlessly in all of my applications except xterm. II'll try to explain what's wrong.

First of all, when I press æ, ø or å xterm doesn't write anything until I press a key again (it's behind a keypress), here's the effect of pressing æææ[return]exit[return]:

[lars@laptop ~]$ ææ
bash: ææ: command not found
[lars@laptop ~]$ æexit
bash: æexit: command not found

As you can see, the third æ doesn't appear until I press the next key, e in exit.

Here's another indication of the problem:

[lars@laptop test]$ touch æ
[lars@laptop test]$ ls
?
[lars@laptop test]$ rm æ
rm: remove regular empty file `\346'? y

An æ written by GIMP looks like this in xterm:

[lars@laptop test]$ ls
æ.png

Offline

#2 2009-03-18 22:12:38

PJ
Member
From: Sweden
Registered: 2005-10-11
Posts: 602

Re: xterm has trouble with my character set

I am not sure if this will solve the problem but have you enabled unicode support in xterm? To use unicode in xterm you could either use uxterm or xterm -u8

Offline

#3 2009-03-18 23:06:31

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: xterm has trouble with my character set

I think you've got me closer to the problem, whatever it is:

[lars@laptop ~]$ xterm
Warning: locale not supported by Xlib, locale set to C
[lars@laptop ~]$ xterm -u8
Warning: locale not supported by Xlib, locale set to C
[lars@laptop ~]$ uxterm
Warning: locale not supported by Xlib, locale set to C

At least it seems to indicate a problem with the locale, which might be causing my problem - I don't know...

[lars@laptop ~]$ locale
LANG=en_DK.utf8
LC_CTYPE="en_DK.utf8"
LC_NUMERIC="en_DK.utf8"
LC_TIME="en_DK.utf8"
LC_COLLATE=C
LC_MONETARY="en_DK.utf8"
LC_MESSAGES="en_DK.utf8"
LC_PAPER="en_DK.utf8"
LC_NAME="en_DK.utf8"
LC_ADDRESS="en_DK.utf8"
LC_TELEPHONE="en_DK.utf8"
LC_MEASUREMENT="en_DK.utf8"
LC_IDENTIFICATION="en_DK.utf8"
LC_ALL=

Offline

#4 2009-03-19 20:08:12

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: xterm has trouble with my character set

Well, I changed my locale back to en_US.utf8 and my problems are now gone. Since I don't see any side effects of this, I guess I'm happy.

Edit: ...except that Pidgin shows the wrong time format. Other apps will probably do similar things. I had to go back to en_DK so now the problem is back.

Last edited by Lars Stokholm (2009-03-22 10:31:54)

Offline

Board footer

Powered by FluxBB