NAME
locale
—
get locale-specific
information
SYNOPSIS
locale |
[-a | -m ] |
DESCRIPTION
If locale
is invoked without any
arguments, the current locale configuration is shown.
The options are as follows:
-a
- Display a list of supported locales.
-m
- Display a list of supported character sets.
ENVIRONMENT
The locale configuration consists of the following environment variables:
LC_ALL
- Overrides all other LC_* variables below.
LC_COLLATE
- Locale for string collation routines.
LC_CTYPE
- Locale for character set.
LC_MESSAGES
- Locale for message strings.
LC_MONETARY
- Locale for formatting monetary values.
LC_NUMERIC
- Locale for formatting numbers.
LC_TIME
- Locale for formatting dates and times.
LANG
- Fallback if any of the above is unset.
EXIT STATUS
The locale
utility exits 0 on
success, and >0 if an error occurs.
SEE ALSO
STANDARDS
The locale
utility implements a subset of
the IEEE Std 1003.1-2008 (“POSIX.1”)
specification.
HISTORY
The locale
utility was first standardized
in the X/Open Portability Guide Issue 4
(“XPG4”).
It was rewritten from scratch for OpenBSD 5.4 during the 2013 Toronto hackathon.
AUTHORS
Stefan Sperling <stsp@openbsd.org> with contributions from Philip Guenther <guenther@openbsd.org> and Jeremie Courreges-Anglas <jca@openbsd.org>.
BUGS
The list of supported locales is perpetually incomplete.