Date: Wed, 23 Mar 2005 00:16:23 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Andreas Davour <ante@Update.UU.SE> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: 8-bit characters anyone? Message-ID: <20050322221622.GB821@gothmog.gr> In-Reply-To: <Pine.LNX.4.62.0503222300390.17600@Psilocybe.Update.UU.SE> References: <Pine.LNX.4.62.0503222102290.1391@Psilocybe.Update.UU.SE> <20050322215440.GA821@gothmog.gr> <Pine.LNX.4.62.0503222300390.17600@Psilocybe.Update.UU.SE>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-03-22 23:02, Andreas Davour <ante@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050322221622.GB821>