From owner-freebsd-questions@FreeBSD.ORG Thu Feb 8 19:43:41 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 57A2A16A401 for ; Thu, 8 Feb 2007 19:43:41 +0000 (UTC) (envelope-from pmatulis@sympatico.ca) Received: from bay0-omc2-s8.bay0.hotmail.com (bay0-omc2-s8.bay0.hotmail.com [65.54.246.144]) by mx1.freebsd.org (Postfix) with ESMTP id 4240313C4A3 for ; Thu, 8 Feb 2007 19:43:41 +0000 (UTC) (envelope-from pmatulis@sympatico.ca) Received: from bayc1-pasmtp05.bayc1.hotmail.com ([65.54.191.165]) by bay0-omc2-s8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 8 Feb 2007 11:43:41 -0800 X-Originating-IP: [70.53.155.213] X-Originating-Email: [pmatulis@sympatico.ca] Received: from tantra ([70.53.155.213]) by bayc1-pasmtp05.bayc1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Feb 2007 11:43:40 -0800 From: Peter To: freebsd-questions@freebsd.org Date: Thu, 8 Feb 2007 14:44:01 -0500 User-Agent: KMail/1.9.1 References: <200702061729.09543.pmatulis@sympatico.ca> <200702080038.35904.pmatulis@sympatico.ca> <20070208111627.GA2213@kobe.laptop> In-Reply-To: <20070208111627.GA2213@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200702081444.01758.pmatulis@sympatico.ca> X-OriginalArrivalTime: 08 Feb 2007 19:43:40.0602 (UTC) FILETIME=[6EF659A0:01C74BB9] 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 19:43:41 -0000 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=20 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' PM