Re: locale problem
From: Laurent Blume (laurent=//=pas_de_pub/news200505_at_elanor.org)
Date: 05/26/05
- Next message: newsreader: "Re: docs.sun.com breakage?"
- Previous message: Dan McDonald: "Re: Question in IPsec"
- In reply to: G Dahler: "locale problem"
- Next in thread: G Dahler: "Re: locale problem"
- Reply: G Dahler: "Re: locale problem"
- Reply: Sven Mascheck: "Re: locale problem"
- Reply: Daniel Rock: "Re: locale problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: newsreader: "Re: docs.sun.com breakage?"
- Previous message: Dan McDonald: "Re: Question in IPsec"
- In reply to: G Dahler: "locale problem"
- Next in thread: G Dahler: "Re: locale problem"
- Reply: G Dahler: "Re: locale problem"
- Reply: Sven Mascheck: "Re: locale problem"
- Reply: Daniel Rock: "Re: locale problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|