Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2007 14:44:01 -0500
From:      Peter <pmatulis@sympatico.ca>
To:        freebsd-questions@freebsd.org
Cc:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Subject:   Re: toggle between english and french (how?)
Message-ID:  <200702081444.01758.pmatulis@sympatico.ca>
In-Reply-To: <20070208111627.GA2213@kobe.laptop>
References:  <200702061729.09543.pmatulis@sympatico.ca> <200702080038.35904.pmatulis@sympatico.ca> <20070208111627.GA2213@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Jeudi 8 F=E9vrier 2007 06:16, Giorgos Keramidas a =E9crit=A0:
> On 2007-02-08 00:38, Peter <pmatulis@sympatico.ca> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702081444.01758.pmatulis>