Subject: Re: workaround for pkg/14051
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Noriyuki Soda <soda@sra.co.jp>
List: tech-userlevel
Date: 01/21/2002 09:48:52
I agree with what yamamoto-san said.

>>>>> On Sun, 20 Jan 2002 21:24:50 +0100,
	Manuel Bouyer <bouyer@antioche.eu.org> said:

>> I propose:
>> - use LC_MESSAGES environment variable for NLS as standards.

> What about backward compatibility ? I think we should continue to support
> LANG as well.

No problem.
Because if LANG is set and LC_MESSAGES isn't set, the value of LANG
will be used as default value of LC_MESSAGES.
(See setlocale(3) man page on Solaris, for example).
So, using LC_MESSAGES preserves backward compatibility.

BTW, SUSv2 (*1) defines NL_CAT_LOCALE flag to use LC_MESSAGES on
catopen(3), but it seems our catopen(3) doesn't look at it...
Is this right thing? (This is questions to Klaus....)

(*1)
http://www.rdg.opengroup.org/onlinepubs/007908799/xsh/catopen.html
--
soda