On Wed, Jul 10, 2002 at 01:55:34PM -0400, Jungshik Shin wrote: > > POSIX fixes the order to LC_ALL, then LC_CTYPE, then LANG. > > Could you quote the part of SUS3/POSIX where this rule is fixed > as you wrote.
http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html: The values of locale categories shall be determined by a precedence order; the first condition met below determines the value: 1. If the LC_ALL environment variable is defined and is not null, the value of LC_ALL shall be used. 2. If the LC_* environment variable (LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, LC_TIME) is defined and is not null, the value of the environment variable shall be used to initialize the category that corresponds to the environment variable. 3. If the LANG environment variable is defined and is not null, the value of the LANG environment variable shall be used. 4. If the LANG environment variable is not set or is set to the empty string, the implementation-defined default locale shall be used. Marius Gedminas -- Un*x admins know what they are doing by definition. -- Bernd Petrovitsch
msg00985/pgp00000.pgp
Description: PGP signature
