
l
locale(1) | locale(1) |
<keyword>=<value>
Without the
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
LC_CTYPE determines the interpretation of text as single and/or
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
RETURN VALUE
The locale command exits with one of the following values:
0All requested information was found and displayed successfully.
>0 An error occurred in either ®nding 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
produces:
LC_NUMERIC decimal_point="."
If LANG is set to POSIX and no other locale variables are set, the command:
Section 1−456 | − 2 − |