8-bit characters anyone?

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Mar 22 14:16:34 PST 2005


On 2005-03-22 23:02, Andreas Davour <ante at Update.UU.SE> wrote:
>On Tue, 22 Mar 2005, Giorgos Keramidas wrote:
>>>In KDE, after having added my own xmodmap to the .xinitrc file, I
>>>though that they might appear. No such luck. Even after setting the
>>>keyboard layout on Control Panel/Regional/Keyboard Layout to Swedish
>>>do they not appear. [...]
>>
>>You have probably forgotten to set the locale related stuff correctly in
>>your environment.  What does the following in one of your shells?
>>
>>	% env | grep LANG
>>	% env | grep LC_
>
> Nothing at all. Though, I never did fiddle with locales before the
> upgrade either. In KDE I have configured the locale as Swedish, and the
> date, currency and those things look ok.

This is probably what's causing you trouble.

FWIW, using the XKB input extension here, I noticed that the X server
fails to get/output any 8-bit character until I correctly set my
environment in the login shell or my ``.xinitrc'' file.

For instance, for Greek text input, I use:

    [-- .xinitrc file --]

%   # Clear all existing locale environment.
%   __junk=""
%   unset __junk `env | sed -n -E '/^(LANG|LC_[A-Z]+)=.*$/ s/=.*$//p'`
%   export LANG='C'
%   export LC_CTYPE='el_GR.ISO8859-7'
%   export LC_COLLATE='el_GR.ISO8859-7'
%
%   # Finally, fire up the window manager.
%   exec wmaker

    [-- /etc/X11/xorg.conf --]

%   Section "InputDevice"
%       Identifier "Keyboard0"
%       Driver "keyboard"
%       Option "XkbRules" "xorg"
%       Option "XkbModel" "pc105"
%
%       # Support for Greek input.  You must also have a matching locale
%       # setup in the environment of your xinit process.
%       Option "XkbLayout"  "us,el"
%       Option "XkbOptions" "grp:alt_shift_toggle"
%   EndSection

The xorg.conf stuff fails to work if I comment out the locale settings
in my .xinitrc file.

- Giorgos



More information about the freebsd-questions mailing list