From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 22:16:34 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58C5516A4CE for ; Tue, 22 Mar 2005 22:16:34 +0000 (GMT) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34A1143D3F for ; Tue, 22 Mar 2005 22:16:33 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 11721 invoked by uid 207); 22 Mar 2005 22:16:31 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.224):. Processed in 0.97608 secs); 22 Mar 2005 22:16:31 -0000 Received: from dialup224.ach.sch.gr (HELO gothmog.gr) ([81.186.70.224]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 22 Mar 2005 22:16:30 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j2MMGOff001158; Wed, 23 Mar 2005 00:16:24 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j2MMGNKn001157; Wed, 23 Mar 2005 00:16:23 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 23 Mar 2005 00:16:23 +0200 From: Giorgos Keramidas To: Andreas Davour Message-ID: <20050322221622.GB821@gothmog.gr> References: <20050322215440.GA821@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-questions@FreeBSD.ORG Subject: Re: 8-bit characters anyone? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 22:16:34 -0000 On 2005-03-22 23:02, Andreas Davour 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