Il 15/03/2009 alle 12:48, Olf Epler ha scritto:
> my default locale are set to "C" -> /etc/sysconfig/i18n:
> LANG="C" (or POSIX)
> If I use bash or zsh it is possible to change the keyboard
> layout in /etc/sysconfig/keyboard and also in /etc/X11/xorg.conf
> to another keymap without changing the LANG settings.
> But this does not work for tcsh.
> Only if I also set LANG to the appropriate language the
> correct keys are printed - but now also the default
> language english is changed. I want to change only the keymap.
> Can somebody help?
I'm not sure if tcsh has anything to do with it.
I suggest you set $LC_ALL and $LANG to "en_US.utf8". Enter your keyboard
layout in "/etc/sysconfig/keyboard" (for the text console) and in
"/etc/X11/xorg.conf" (for X apps). That's all.
I'm attaching some excerpts from my config files. Aside from changing
"it" to -presumably- "de", they should work if you're using a standard
PC keyboard.
-----BEGIN /etc/X11/xorg.conf EXCERPT-----
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "it"
Option "XkbOptions" "lv3:ralt_switch"
EndSection
------END /etc/X11/xorg.conf EXCERPT------
-----BEGIN /etc/sysconfig/keyboard-----
KEYBOARDTYPE="pc"
KEYTABLE="it"
------END /etc/sysconfig/keyboard------
-----BEGIN /etc/csh.cshrc EXCERPT-----
setenv LC_ALL "en_US.utf8"
setenv LANG $LC_ALL
------END /etc/csh.cshrc EXCERPT------