Software Internationalization Guide

POSIX and XPG Internationalization Model
Software Internationalization Guide526225-002
3-4
Locale Variable Precedence
enables the users environment to display time formats according to German time
conventions, after setlocale() has successfully set the German locale.
See Setting the Program Environment on page 3-6 for more information.
The following locale environment variables are available in the OSS environment:
LC_ALL determines values of all locale environment variables and has precedence
over all other locale environment variables. LC_ALL identifies overall language and
cultural requirements and can be used alone when a single set of localization data
covers all aspects of native language.
LANG determines values of all locale environment variables in the absence of other
LC variables. The locale setting of LANG determines how character sets, character
types, collation sequences, messages, and date and time formats work. LANG can
be used with specific locale variables to provide operation in multiple languages.
LC_COLLATE determines how characters are ordered, sorted, grouped, and
translated for specific language and cultural requirements of the users
environment.
LC_CTYPE determines character handling procedures, interpretations of bytes per
character in a data stream, classification of characters, and the behavior of
character classes for specific language and cultural requirements of the user’s
environment.
LC_MESSAGES determines how to format messages and process interactive
responses for specific language and cultural requirements of the users
environment.
LC_MONETARY determines how to format representations of currencies, including
symbols for monetary values for specific language and cultural requirements of the
user’s environment.
LC_NUMERIC determines how numbers are represented, including the use of
numeric punctuations such as decimal points and commas, for specific language
and cultural requirements of the users environment.
LC_TIME determines date and time formatting for specific language and cultural
requirements of the user’s environment.
The locale command can be used from the OSS shell to display information about
available public locales, specified locale categories, and the names and values of
specified locale keywords. See the locale(1) reference page either online or in the
Open System Services Shell and Utilities Reference Manual for more information.
Locale Variable Precedence
The locale environment variables follow these precedence rules:
1. LC_ALL takes precedence over all other LC variables and the LANG variable.
2. LC variables take precedence when LC_ALL is not defined.