Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
locale(1) OSS Shell and Utilities Reference Manual
NAME
locale - Writes information about locales
SYNOPSIS
locale
[-a | -m]
locale
[-c][-k]
name ...
FLAGS
-a Writes information about all available public locales
-c Writes the names of the specified locale categories
-k Writes the names and values of specified locale keywords
-m Writes the names of all available character map files
Operands
name Specifies a locale category or locale keyword
DESCRIPTION
With no flags or arguments, the locale utility writes to the standard output file the name and
values of all the current locale environment variables, such as LANG and LC_COLLATE.
With the -a or -m flags, the locale utility displays information about available locales and charac-
ter maps on your system.
• If the -a flag is specified, the locale utility writes the name of all available public locales.
These are locales available to any application.
• If the -m flag is specified, the locale utility writes a list of the names of all available
character-mapping files.
The locale utility with the name argument displays information about locale categories and key-
words in the current locale. For example, it could display information about the decimal_point
keyword in the LC_NUMERIC category or information about all keywords in the
LC_NUMERIC category. The name argument can either be a locale category or a keyword from
a category.
5−64 Hewlett-Packard Company 527188-021