FS#15977 - no umlauts in terminals (xterm, urxvt)
Attached to Project:
Arch Linux
Opened by Andrwe (Andrwe) - Tuesday, 18 August 2009, 14:02 GMT
Last edited by Roman Kyrylych (Romashka) - Wednesday, 16 September 2009, 18:36 GMT
Opened by Andrwe (Andrwe) - Tuesday, 18 August 2009, 14:02 GMT
Last edited by Roman Kyrylych (Romashka) - Wednesday, 16 September 2009, 18:36 GMT
|
Details
Description:
I can't use umlauts although I've set de_DE.UTF8 as LOCALE in rc.conf. Also $LANG and all $LC_* variables aren't set (see below). Additional info: Output of locale: LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= Output of locale -a: C POSIX de_DE de_DE.iso88591 de_DE.iso885915@euro de_DE.utf8 de_DE@euro deutsch en_US en_US.iso88591 en_US.utf8 german |
This task depends upon
Closed by Roman Kyrylych (Romashka)
Wednesday, 16 September 2009, 18:36 GMT
Reason for closing: Works for me
Wednesday, 16 September 2009, 18:36 GMT
Reason for closing: Works for me
rc.conf
WM: Openbox
Login Manager: Qingy
Terminals: xterm, urxvt
Font: Terminus
$ echo $LANG
en_US.UTF-8
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.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=
$ export LANG=jfewfewfrew
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=jfewfewfrew
LC_CTYPE="jfewfewfrew"
LC_NUMERIC="jfewfewfrew"
LC_TIME="jfewfewfrew"
LC_COLLATE=C
LC_MONETARY="jfewfewfrew"
LC_MESSAGES="jfewfewfrew"
LC_PAPER="jfewfewfrew"
LC_NAME="jfewfewfrew"
LC_ADDRESS="jfewfewfrew"
LC_TELEPHONE="jfewfewfrew"
LC_MEASUREMENT="jfewfewfrew"
LC_IDENTIFICATION="jfewfewfrew"
LC_ALL=
$ export LANG=
$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE=C
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
Have you done any mucking with /etc/profile or /etc/rc.sysinit?
# Flush old locale settings
: >/etc/profile.d/locale.sh
/bin/chmod 755 /etc/profile.d/locale.sh
# Set user defined locale
[ -z "$LOCALE" ] && LOCALE="en_US"
stat_busy "Setting Locale: $LOCALE"
echo "export LANG=$LOCALE" >>/etc/profile.d/locale.sh
stat_done
. /etc/profile.d/locale.sh
from an existing terminal, and then run "locale" ?
But I don't have umlauts.
Regarding the umlauts... try rerunning locale-gen or something, making sure that +x is set on locale.sh, then try rebooting?
I've tested a bit and found out that my locale.sh won't be executed.
I added
echo "echo 'test $(date)' > /home/alw/locale.test" >>/etc/profile.d/locale.sh
after the line which sets the export command (echo "export LANG=$LOCALE" >>/etc/profile.d/locale.sh) but after a reboot locale.test isn't written in my home directory but the line is written into locale.sh.
Try setting urxvt*loginShell and xterm*loginShell to true in ~/.Xdefaults.
I also have set up a new system and there I have in all X programs umlauts and in xterm too but not in urxvt.
Isn't xterm/urxvt using some other font instead of ter-v16b?
Have you tried changing the font?
Only in urxvt and xterm I don't have umlauts.
I've set the font adding the following line to .Xdefaults:
URxvt.font: xft:Terminus:pixelsize=12
URxvt.tabbed.font: xft:Terminus:pixelsize=12
urxvt -fn "xft:Terminus"
loaded de-latin1-nodeadkeys and launched mc with:
LANG=de_DE.UTF-8 mc
and I can see umlauts
So this looks like error in your config, not a bug.
On the internet I found a recommendation to add the following to .Xresources:
URxvt.font: -*-terminus-medium-r-*-*-14-*-*-*-*-*-iso10646-1,\
-*-fixed-medium-r-*-*-14-*-*-*-*-*-iso10646-1
URxvt.boldFont: -*-terminus-bold-*-*-*-14-*-*-*-*-*-iso10646-1,\
-*-fixed-bold-*-*-*-14-*-*-*-*-*-iso10646-1
More info here: http://darkk.livejournal.com/42240.html (in Russian, so use translate.google.com)
It mentions a bug in rxvt-unicode, though probably it is more like behaviour specific than a bug.
This should be handled by upstream anyway.
I'm willing to close this bugreport as I don't think we can help here much.
It's better to ask on forums for help in fixing the configuration.
We've also compared the local variables and it is the same too.
That is why I don't have a clue anymore.
But it really seams not to be a bug since I'm the only one with such a problem so you can close it.
Thanks for the help.