Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
l
locale(1) locale(1)
-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.
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:
LC_ALL=POSIX locale -ck decimal_point
produces:
LC_NUMERIC decimal_point="."
If LANG is set to POSIX and no other locale variables are set, the command:
Section 1456 2 HP-UX Release 11i: December 2000
___
___