Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lang(5) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

nlsinfo(1)

setlocale(3C)

environ(5)

hpnls(5)

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(1) command will display information regarding what languages are currently supported on a particular HP-UX system.  In addition, nlsinfo will also provide information on what modifiers (see environ(5)) are valid for each available language. 

The default processing language for HP-UX is "C".  "C" provides an environment in which processing occurs without NLS functionality.  This environment is based on the 7-bit US ASCII coded 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 the nl_init(3C) routine is used. "C" and "n-computer" are equivalent with the exception of the nl_langinfo(3C) items currency symbol (CRNCYSTR) and thousands seperator (THOUSEP).  "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(3C) instead. 

The NLS environment can also be initialized by passing a language ID number to routines which 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 the /usr/lib/nls/config file.  The language ID number and the routines accepting the langid parameter are provided for historical reasons only.  Routines which provide equivalent functionality without the langid parameter are recommended.  The WARNING section of the appropriate routine will indicate what routine to use. 

AUTHOR

Lang was developed by HP. 

SEE ALSO

nlsinfo(1), setlocale(3C), environ(5), hpnls(5) / / / / /

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026