From owner-freebsd-questions@FreeBSD.ORG Thu Feb 8 20:09:00 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 CD96316A494 for ; Thu, 8 Feb 2007 20:09:00 +0000 (UTC) (envelope-from pmatulis@sympatico.ca) Received: from bay0-omc3-s22.bay0.hotmail.com (bay0-omc3-s22.bay0.hotmail.com [65.54.246.222]) by mx1.freebsd.org (Postfix) with ESMTP id B7CDC13C4A7 for ; Thu, 8 Feb 2007 20:09:00 +0000 (UTC) (envelope-from pmatulis@sympatico.ca) Received: from bayc1-pasmtp11.bayc1.hotmail.com ([65.54.191.171]) by bay0-omc3-s22.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 8 Feb 2007 12:09:00 -0800 X-Originating-IP: [70.53.155.213] X-Originating-Email: [pmatulis@sympatico.ca] Received: from tantra ([70.53.155.213]) by bayc1-pasmtp11.bayc1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Feb 2007 12:20:44 -0800 From: Peter To: freebsd-questions@freebsd.org Date: Thu, 8 Feb 2007 15:09:21 -0500 User-Agent: KMail/1.9.1 References: <200702061729.09543.pmatulis@sympatico.ca> <20070208111627.GA2213@kobe.laptop> <200702081444.01758.pmatulis@sympatico.ca> In-Reply-To: <200702081444.01758.pmatulis@sympatico.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200702081509.21485.pmatulis@sympatico.ca> X-OriginalArrivalTime: 08 Feb 2007 20:20:44.0921 (UTC) FILETIME=[9CC27E90:01C74BBE] Cc: Giorgos Keramidas 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: Thu, 08 Feb 2007 20:09:00 -0000 Le Jeudi 8 F=E9vrier 2007 14:44, Peter a =E9crit=A0: > Le Jeudi 8 F=E9vrier 2007 06:16, Giorgos Keramidas a =E9crit=A0: > > On 2007-02-08 00:38, Peter wrote: > > >Le Mercredi 7 F?vrier 2007 16:03, Giorgos Keramidas a ?crit=A0: > > >>> Yes, I tried > > >>> > > >>> fr.iso.acc.kbd > > >>> fr.iso.kbd > > >>> fr_CA.iso.acc.kbd > > >>> > > >>> Maybe I need to inform FreeBSD about the layout of my keyboard. > > >>> All I get are beeps when I hit the special French accent keys. > > >> > > >> This usually means that you are typing 8-bit (i.e. French) > > >> characters at a shell prompt, but you have not set or configured > > >> any locale environment yet, or you have the wrong locale > > >> environment. > > >> > > >> If this is true, and you are hearing the beeps when typing at a > > >> shell prompt, then please tell us which shell you are using and > > >> what you see by typing: > > >> > > >> % locale > > > > > > This is what I get: > > > > > > LANG=3D > > > LC_CTYPE=3D"C" > > > LC_COLLATE=3D"C" > > > LC_TIME=3D"C" > > > LC_NUMERIC=3D"C" > > > LC_MONETARY=3D"C" > > > LC_MESSAGES=3D"C" > > > LC_ALL=3D > > > > Right. You haven't set any LANG or LC_xxx environment variables. > > > > Try using one of the French locales, and set the following in your > > shell startup scripts: > > > > LANG=3D'C' > > LC_COLLATE=3D'fr_CA.ISO8859-1' > > LC_CTYPE=3D'fr_CA.ISO8859-1' > > > > If you are using GNU bash, you can set in your `.bashrc' file: > > > > export LANG=3D'C' > > export LC_COLLATE=3D'fr_CA.ISO8859-1' > > export LC_CTYPE=3D'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=3D'/usr/sbin/kbdcontrol -l fr_CA.iso.acc.kbd' > alias english=3D'/usr/sbin/kbdcontrol -l us.iso.acc.kbd' > Darn. Now I see that these commands cannot be used via an xterm=20 (remotely via SSH). Any ideas? PM