Re: locale problem

From: Laurent Blume (laurent=//=pas_de_pub/news200505_at_elanor.org)
Date: 05/26/05


Date: Thu, 26 May 2005 23:19:04 +0200

G Dahler wrote:
> I've just installed solaris 9. Instyead of the default US-7 ASCII locale
> (C/Posix) I've opted to install the french canadian and english canadian
> locale as well.
>
> When web start asked me for the default system local, I responded POSIX.
>
> I was hoping that afterward, I could simply put:
>
> LANG=fr_CA.ISO8859-1
> export LANG
>
> And get dates in french and error message in french for my regular user's
> ssh sessions, and have the english messages by default.
>
> That does not seem to work. I get correct dates, sort, etc... in french, but
> the error messages are still in english. I then proceeded to load the
> "languages CD" and run the web start installer and install the french locale
> and rebooted. That did not help either...
>
> Is there a way to accomplish what I want ? I still need the english messages
> for root, because it's easier to search the doc in english when you encouter
> a problem (not to mention that the french messages confuses me at best)

I've never played much with those, but a quick test seems to show that LANG is
not the variable to set, and that there might be a minor ssh inconsistency here.

Look at those tries:

Everything C, everything in English.
$ locale
LANG=C
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=C
LC_ALL=

$ ssh localhost
Password:
Password:
Password:
Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).

LC_MESSAGES fr_FR.UTF-8, everything else C: first messages in English, last in
French:
$ locale
LANG=C
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=fr_FR.UTF-8
LC_ALL=

$ ssh localhost
Password:
Password:
Password:
Permission refusée (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).

LC_MESSAGES abd LC_CTYPE in fr_FR.UTF-8, everything else in C, messages all in
French:
$ locale
LANG=C
LC_CTYPE=fr_FR.UTF-8
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=fr_FR.UTF-8
LC_ALL=

$ ssh localhost
Mot de passe :
Mot de passe :
Mot de passe :
Permission refusée (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).

So to get ssh in French, you need to set at least LC_CTYPE and LC_MESSAGES. LANG
appears to be irrelevant here. But you'd probably be better just setting LC_ALL
and LANG.

HTH,

Laurent



Relevant Pages

  • locale problem
    ... Instyead of the default US-7 ASCII locale ... I've opted to install the french canadian and english canadian ... And get dates in french and error message in french for my regular user's ...
    (comp.unix.solaris)
  • Re: Quality Cental
    ... >>English) edition of Delphi, so why would there be a locale for the UK? ... > French version of Delphi is the property spelt the French way or the ...
    (borland.public.delphi.non-technical)
  • Re: [SLE] problem with date
    ... check your locale, as the abbreviated days, months ... so although nov works in French and English, sun should be dim in ... French, and feb is fev etc etc... ...
    (SuSE)
  • We need Language Exchange Partners, we can teach you French
    ... We can teach you French in exchange. ... Dalesa Dalima, 24 years old, France ... I want to learn: English ... Je suis une fille très dynamique, ...
    (soc.culture.belgium)
  • We need Language Exchange Partners, we can teach you French
    ... We can teach you French in exchange. ... Dalesa Dalima, 24 years old, France ... I want to learn: English ... Je suis une fille très dynamique, ...
    (soc.culture.quebec)