lang(5)
NAME
lang − description of supported languages
DESCRIPTION
HP-UX NLS (Native Language Support) provides support for the processing and customs requirements of a variety of languages. To enable NLS support for a particular language, a language definition must exist on the HP-UX system. The nlsinfo command (see nlsinfo(1)) displays information regarding what languages are currently supported on a particular HP-UX system. In addition, nlsinfo also provides information on what modifiers (see environ(5)) are valid for each available language.
The default processing language for HP-UX is POSIX. POSIX provides an environment in which processing occurs without NLS functionality. This environment is based on the 7-bit-coded USASCII character set.
WARNINGS
Previous releases of HP-UX provided n-computer as the default processing language. For backward-compatibility, n-computer remains the default processing language when nl_init() is used (see nl_init(3C)). POSIX and C are equivalent and can be used interchangeably. POSIX/C and n-computer are equivalent with the exception of the nl_langinfo(3C) items currency symbol (CRNCYSTR) and thousands seperator (THOUSEP). POSIX/C defines both to be the empty string, while n-computer defines the currency symbol to be $ and the thousands separator to be ,. nl_init() and n-computer are provided for backward-compatibility. Use setlocale() instead (see setlocale(3C)).
The NLS environment can also be initialized by passing a language ID number to routines that accept a langid parameter. The language ID number corresponds to a language name. The language ID numbers and the corresponding language names are stored in file /usr/lib/nls/config. The language ID number and the routines accepting the langid parameter are provided for historical reasons only. Routines that provide equivalent functionality without the langid parameter are recommended. The WARNINGS section of manual entries for applicable routines indicate what routine to use.
AUTHOR
lang was developed by HP.
SEE ALSO
nlsinfo(1), setlocale(3C), wctype(3X), environ(5), hpnls(5)
Hewlett-Packard Company — HP-UX Release 9.0: August 1992