RE: Location vs Language


Subject: RE: Location vs Language
From: Justin Bradford (justin@ukans.edu)
Date: Fri Apr 14 2000 - 16:20:05 CDT


On Fri, 14 Apr 2000, sam th wrote:

> On my machine, I have an LC_ALL, a LANG and a LINGUAS. I'm not sure where
> LINGUAS comes from, but LANG is refferd to in the comments of
> ap_UnixPrefs.cpp as being part of POSIX. If this is correct (I don't own
> POSIX) then that is the one we should key off, on Unix at least. If LANG
> is not present, then LC_MESSAGES looks better than LC_CTYPE, as you say.
> The one bizzare aspect of this is if messages were in LC_MESSAGES
> language, and everything else in LANG language. :-0

I wrote the code in there now, and I wasn't sure which LC_ to use, either.

According to the documentation LC_ALL overrides LANG and LC_*, and
LANG is the default for undefined LC_*.

What's nice though, is that the locale functions do that for you
automatically. You ask for LC_MESSAGES and you get either 1) what
LC_MESSAGES is defined as 2) what LC_ALL is, or 3) what LANG is.

So, failing to find LC_WORDPROCESSOR, I picked LC_CTYPE initially, but I
agree that LC_MESSAGES makes more sense.

Justin



This archive was generated by hypermail 2b25 : Fri Apr 14 2000 - 16:20:11 CDT