toggle between english and french (how?)

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Feb 9 02:06:52 UTC 2007


On 2007-02-08 15:09, Peter <pmatulis at sympatico.ca> 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.



More information about the freebsd-questions mailing list