environ(5int)
NAME
environ − NLS environment variables
DESCRIPTION
The following environment variables are defined for the ULTRIX-32 system and are additional to those defined in ULTRIX System Calls and Libraries, environs(.). These variables are made available to a process by exec.
LANGLANG identifies the user’s requirements for native language, local customs, and coded character set, as an ASCII character set in the form
LANG=language[_territory[.codeset]]
where standard settings of language, territory and codeset are implementation defined (refer to lang.
At runtime, the user’s language requirements, as specified by the setting of LANG, are bound to the execution of a program by calling setlocale. For example:
setlocale (LC_ALL, "");
LANG can be set up by system administrators to provide a default setting for the system as a whole, or it can be set up by users individually using standard command interpreter facilities. For further information, see sh(.).
LC_COLLATE
Contains the user’s requirements for language, territory and codeset for the character collation format. LC_COLLATE affects the behavior of regular expressions and the string collation functions in strcoll and strxfrm. If LC_COLLATE is not defined in the current environment, LANG provides the necessary default.
LC_CTYPE
Contains the user’s requirements for language, territory and codeset for the character classification and conversion format. LC_CTYPE affects the behavior of the character handling functions in conv and ctype. If LC_CTYPE is not defined in the current environment, LANG provides the necessary default.
LC_NUMERIC
Contains the user’s requirements for language, territory and codeset for the numeric data presentation format. LC_NUMERIC affects the radix and thousands separator character for the formatted input/output functions in printf, scanf, nl_printf, nl_scanf, and the string conversion functions in ecvt and atol. If LC_NUMERIC is not defined in the current environment, LANG provides the necessary default.
LC_TIME
Contains the user’s requirements for language, territory and codeset for the time format. LC_TIME affects the behavior of the time functions in strftime. If LC_TIME is not defined in the current environment, LANG provides the necessary default.
LC_MONETARY
Contains the user’s requirements for language, territory and codeset for the monetary format. LC_MONETARY affects the currency string in nl_langinfo. If LC_MONETARY is not defined in the current environment, LANG provides the necessary default.
NLSPATH
Contains a sequence of pseudo-pathnames which catopen uses when attempting to locate message catalogs. Each pseudo-pathname contains a name template, consisting of an optional path-prefix, one or more substitution fields, a filename and an optional filename suffix.
For example:
NLSPATH="/system/nlslib/%N.cat"
defines that catopen should look for all message catalogs in the directory /system/nlslib, where the catalogue name should be constructed from the name parameter passed to catopen(%N), with the suffix .cat.
Substitution fields consist of a % symbol, followed by a single-letter keyword. The following keywords are currently defined:
%NThe value of the name parameter passed to catopen.
%LThe value of LANG.
%lThe language element from LANG.
%tThe territory element from LANG.
%cThe codeset element from LANG.
%%A single % character.
A null string is substituted if the specified value is not currently defined. The separators _ and . are not included in %t and %c substitutions.
Pathnames defined in NLSPATH are separated by colons (:). A leading or two adjacent colons (::) indicates the current directory. For example:
NLSPATH=":%N.cat:/nlslib/%L/%N.cat"
indicates to catopen that it should look for the requested message catalogue in name, name.cat and /nlslib/$LANG/name.cat.