HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)

l
locale(1) locale(1)
-m Display a list of available charmap files on the system. See localedef (1M) for a definition
of charmap files and their usage.
-c Display names of locale categories that have been selected either explicitly or by giving a
keyword contained therein. This option may be used with the
-k option.
-k Display names of keywords that have been selected either explicitly or by providing their
containing category as an argument. Keyword names and values are displayed as:
<keyword>=<value>
Without the
-k option, only the values are displayed. This option can be used with the
-c option.
-pa32 Display 32-bit PA-RISC locales. (Option available only on Itanium-based systems.)
-pa64 Display 64-bit PA-RISC locales. (Option available only on Itanium-based systems.)
name Specify the locale category name, locale keyword, or the special word
charmap.
EXTERNAL INFLUENCES
Environment Variables
LANG provides a default value for the internationalization variables that are unset or null. If
LANG is
unset or null, the default value of "C" (see lang(5)) is used. If any of the internationalization variables
contains an invalid setting,
locale will behave as if all internationalization variables are set to "C". See
environ(5).
LC_ALL, when set to a non-empty string value, overrides the values of all other internationalization vari-
ables.
LC_CTYPE determines the interpretation of text as single and/or multi-byte characters, the classification
of characters as printable, and the characters matched by character class expressions in regular expres-
sions.
LC_MESSAGES determines the locale that should be used to affect the format and content of diagnostic
messages written to standard error, and informative messages written to standard output.
NLSPATH determines the location of message catalog for the processing of LC_MESSAGES.
International Code Set Support
Single- and multi-byte character code sets are supported.
RETURN VALUE
The
locale command exits with one of the following values:
0 All requested information was found and displayed successfully.
>0 An error occurred in either finding or displaying the information.
EXAMPLES
If the locale environment variables are set as:
LANG=fr_FR.iso88591
LC_COLLATE=C
the command:
locale
gives the following output:
LANG=fr_FR.iso88591
LC_CTYPE="fr_FR.iso88591"
LC_COLLATE=C
LC_MONETARY="fr_FR.iso88591"
LC_NUMERIC="fr_FR.iso88591"
LC_TIME="fr_FR.iso88591"
LC_MESSAGES="fr_FR.iso88591"
LC_ALL=
The command:
HP-UX 11i Version 2: August 2003 2 Hewlett-Packard Company Section 1465