Re: toggle between english and french (how?)



Le Jeudi 8 Février 2007 14:44, Peter a écrit :
Le Jeudi 8 Février 2007 06:16, Giorgos Keramidas a écrit :
On 2007-02-08 00:38, Peter <pmatulis@xxxxxxxxxxxx> wrote:
Le Mercredi 7 F?vrier 2007 16:03, Giorgos Keramidas a ?crit :
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=
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

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='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?

PM
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: toggle between english and french (how?)
    ... All I get are beeps when I hit the special French accent keys. ... or you have the wrong locale environment. ... and you are hearing the beeps when typing at a shell ...
    (freebsd-questions)
  • Re: toggle between english and french (how?)
    ... All I get are beeps when I hit the special French accent keys. ... characters at a shell prompt, but you have not set or configured ... any locale environment yet, or you have the wrong locale ...
    (freebsd-questions)
  • BUG: Microsoft.VisualBasic.Conversion.Val(string)
    ... > When the locale is set to something like French (where decimal separators ... > stops converting at the first character that cannot be interpreted as a ... > following when the locale is set to French... ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: locale problem
    ... > locale as well. ... > And get dates in french and error message in french for my regular user's ... and have the english messages by default. ...
    (comp.unix.solaris)