Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

locale(1) [freebsd man page]

LOCALE(1)						    BSD General Commands Manual 						 LOCALE(1)

NAME
locale -- get locale-specific information SYNOPSIS
locale [-a | -m] locale -k list [prefix] locale [-ck] [keyword ...] DESCRIPTION
The locale utility is supposed to provide most locale specific information to the standard output. When locale is invoked without arguments, it will print out a summary of the current locale environment, subject to the environment settings and internal status. When locale is invoked with the keyword arguments, and no options are specified, it will print out the values of all keywords specified, using the current locale settings. The following options are available: -a Print names of all available locales. While looking for locales, locale will respect the PATH_LOCALE environment variable, and use it instead of the system's default locale directory. -c Print the category name for all selected keywords. If no keywords are selected, print the category name for all defined keywords. -k Print the names and values of all selected keywords. If no keywords are selected, print the names and values of all defined key- words. -m Print names of all available charmaps. IMPLEMENTATION NOTES
The special (FreeBSD specific) keyword list can be used to retrieve the human readable list of all available keywords. If so, a prefix string can be defined to limit the amount of keywords returned. EXIT STATUS
The locale utility exits 0 on success, and >0 if an error occurs. SEE ALSO
setlocale(3) STANDARDS
The locale utility conforms to IEEE Std 1003.1-2004 (``POSIX.1''). The LC_CTYPE, LC_MESSAGES and NLSPATH environment variables are not interpreted. BUGS
Since FreeBSD does not support charmaps in their POSIX meaning, locale emulates the -m option using the CODESETs listing of all available locales. BSD
November 18, 2012 BSD

Check Out this Related Man Page

LOCALE(1)							 Debian GNU/Linux							 LOCALE(1)

NAME
locale - Get locale-specific information. SYNOPSIS
locale [ -a | -m] locale [ -ck ] name... DESCRIPTION
The locale program writes information about the current locale environment, or all locales, to standard output. When invoked without arguments, locale summarizes the current locale environment for each locale category defined by the LC_* environment variables. -a, --all-locales Write names of available locales. -m, --charmaps Write names of available charmaps. Output Format: -c, --category-name Write names of selected categories. -k, --keyword-name Write names and values of selected keywords. ENVIRONMENT VARIABLES
These environment variables affect each locale categories for all locale-aware programs: LC_CTYPE Character classification and case conversion. LC_COLLATE Collation order. LC_TIME Date and time formats. LC_NUMERIC Non-monetary numeric formats. LC_MONETARY Monetary formats. LC_MESSAGES Formats of informative and diagnostic messages and interactive responses. LC_PAPER Paper size. LC_NAME Name formats. LC_ADDRESS Address formats and location information. LC_TELEPHONE Telephone number formats. LC_MEASUREMENT Measurement units (Metric or Other). LC_IDENTIFICATION Metadata about the locale information. This environment variable can switch against multiple locale database: LOCPATH The directory where locale data is stored. By default, /usr/lib/locale is used. FILES
/usr/share/i18n/SUPPORTED List of supported values (and their associated encoding) for the locale name. This representation is recommended over --all-locales one, due being the system wide supported values. AUTHOR
locale was written by Ulrich Drepper for the GNU C Library. This manpage was written by Joel Klecker <espy@debian.org> for the Debian GNU/Linux system, and expanded by Alastair McKinstry <mck- instry@computer.org> SEE ALSO
locale(5), locale(7), setlocale(3) 3rd Berkeley Distribution 2004-12-16 LOCALE(1)
Man Page