OpenBSD manual page server

Manual Page Search Parameters

LOCALE(1) General Commands Manual LOCALE(1)

localeget locale-specific information

locale [-a | -m]

If locale is invoked without any arguments, the current locale configuration is shown.

The options are as follows:

Display a list of supported locales.
Display a list of supported character sets.

The locale configuration consists of the following environment variables:

Overrides all other LC_* variables below.
Locale for string collation routines.
Locale for character set.
Locale for message strings.
Locale for formatting monetary values.
Locale for formatting numbers.
Locale for formatting dates and times.
Fallback if any of the above is unset.

The locale utility exits 0 on success, and >0 if an error occurs.

setlocale(3)

The locale utility implements a subset of the IEEE Std 1003.1-2008 (“POSIX.1”) specification.

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.

Stefan Sperling <stsp@openbsd.org> with contributions from Philip Guenther <guenther@openbsd.org> and Jeremie Courreges-Anglas <jca@openbsd.org>.

The list of supported locales is perpetually incomplete.

August 12, 2015 OpenBSD-6.0