[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#311259: error and omission in documentation of LANGUAGE



On Sat, Jun 04, 2005 at 10:43:41PM +0200, Denis Barbier wrote:
> On Fri, Jun 03, 2005 at 04:56:18PM -0400, Daniel Jacobowitz wrote:
> > Except that the problem is that (if everything but LANGUAGE is unset)
> > I would have expected LANGUAGE to set LC_MESSAGES, and it doesn't. 
> 
> This situation should not happen, this is a user configuration error.
> All non-ASCII characters are replaced by question marks if LC_CTYPE
> is unset, so these settings are not usable.

Huh?  I think we're talking past each other.  Let me go back to
examples.

drow@nevyn:~% env - LANG=de_DE cat -h 
cat: Ungültige Option -- h
,,cat --help" gibt weitere Informationen.

With just LANG set, LC_MESSAGES and LC_CTYPE are inferred from LANG.

drow@nevyn:~% env - LANGUAGE=de_DE cat -h
cat: invalid option -- h
Try `cat --help' for more information.

With just LANGUAGE set, LC_MESSAGES and LC_CTYPE are not inferred from
LANG, because of the choice I think we need to document.  They remain
as C.

drow@nevyn:~% env - LANG=ja_JP LANGUAGE=de_DE cat -h
cat: Ung«ältige Option -- h
,,cat --help¡È gibt weitere Informationen.

With LANG set to anything other than C, LANGUAGE set, and nothing else,
LC_MESSAGES is inferred from C.  Interestingly I appear to get LC_CTYPE
from LANG, not from LANGUAGE.  This also is not clear from the
documentation.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: