From owner-freebsd-questions@FreeBSD.ORG Fri Feb 9 02:06:52 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C7B616A402 for ; Fri, 9 Feb 2007 02:06:52 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id AE3FB13C491 for ; Fri, 9 Feb 2007 02:06:51 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l1926Mpp016059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Feb 2007 04:06:29 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id l19265UJ011223; Fri, 9 Feb 2007 04:06:17 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id l19265Bx011222; Fri, 9 Feb 2007 04:06:05 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 9 Feb 2007 04:06:05 +0200 From: Giorgos Keramidas To: Peter Message-ID: <20070209020604.GB11035@kobe.laptop> References: <200702061729.09543.pmatulis@sympatico.ca> <20070208111627.GA2213@kobe.laptop> <200702081444.01758.pmatulis@sympatico.ca> <200702081509.21485.pmatulis@sympatico.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200702081509.21485.pmatulis@sympatico.ca> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.486, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.71, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: toggle between english and french (how?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2007 02:06:52 -0000 On 2007-02-08 15:09, Peter wrote: > Le Jeudi 8 F?vrier 2007 14:44, Peter a ?crit : > > Le Jeudi 8 F?vrier 2007 06:16, Giorgos Keramidas a ?crit : > > > Try using one of the French locales, and set the following in your > > > shell startup scripts: > > > > > > LANG='C' > > > LC_COLLATE='fr_CA.ISO8859-1' > > > LC_CTYPE='fr_CA.ISO8859-1' > > > > > > If you are using GNU bash, you can set in your `.bashrc' file: > > > > > > export LANG='C' > > > export LC_COLLATE='fr_CA.ISO8859-1' > > > export LC_CTYPE='fr_CA.ISO8859-1' > > > > Thanks a lot Giorgos. It works now. I used the bash method and then > > set up a couple of aliases: > > > > alias french='/usr/sbin/kbdcontrol -l fr_CA.iso.acc.kbd' > > alias english='/usr/sbin/kbdcontrol -l us.iso.acc.kbd' > > Darn. Now I see that these commands cannot be used via an xterm > (remotely via SSH). Any ideas? When you are sitting on an xterm in machine A and you ssh into FreeBSD system B, it's the local client's responsibility to set a proper locale and internationalization environment for *displaying* stuff and its FreeBSD's responsibility for letting you type French if your FreeBSD locale is French too. Setting the console keyboard map with kbdcontrol on a remote FreeBSD system cannot affect your local xterm window.