RE: Location vs Language


Subject: RE: Location vs Language
From: sam th (sam@bur-jud-118-039.rh.uchicago.edu)
Date: Fri Apr 14 2000 - 11:30:48 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 14 Apr 2000, Henrik Berg wrote:

> The code in ap_UnixPrefs.cpp talks about
>
> // locale categories:
> // LC_COLLATE - collation of strings (functions strcoll and strxfrm)
> // LC_CTYPE - classification and conversion of characters
> // LC_MONETARY - formatting monetary values
> // LC_NUMERIC - formatting numeric values that are not monetary
> // LC_TIME - formatting date and time values
> // LC_MESSAGES - language of messages and look of affirmative/negative answer
>
> If one is in Swedish and another in English, perhaps we should use LC_MESSAGES instead of LC_CTYPE as we do now.

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

As reported, the bug was on a NT4 system, where I don't know how the
language and locale interact.
           
                                     sam th
                                     sytobinh@uchicago.edu
                                http://bur-jud-118-039.rh.uchicago.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE490e6t+kM0Mq9M/wRAmTAAKDU8LskitD026+q1I5kd/0OU1JbngCbBMQQ
hapz0HJiiCGGs0KGX7Ny3/A=
=5rJP
-----END PGP SIGNATURE-----



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