.\" $OpenBSD: locale.1,v 1.1 2013/06/03 14:27:50 stsp Exp $ .\" .\" Copyright 2013 Stefan Sperling .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd $Mdocdate: June 3 2013 $ .Dt LOCALE 1 .Os .Sh NAME .Nm locale .Nd get locale-specific information .Sh SYNOPSIS .Nm locale .Op Fl a | Fl m .Sh DESCRIPTION If .Nm is invoked without any arguments, the current locale configuration is shown. .Pp The options are as follows: .Bl -tag -width Ds .It Fl a Display a list of supported locales. .It Fl m Display a list of supported character sets. .El .Sh ENVIRONMENT The locale configuration consists of the following environment variables: .Bl -tag -width LC_MONETARY .It Dv LC_ALL Overrides all other LC_* variables below. .It Dv LC_COLLATE Locale for string collation routines. .It Dv LC_CTYPE Locale for character set. .It Dv LC_MONETARY Locale for formatting monetary values. .It Dv LC_NUMERIC Locale for formatting numbers. .It Dv LC_TIME Locale for formatting dates and times. .It Dv LANG Fallback if any of the above is unset. .El .Sh SEE ALSO .Xr setlocale 3 .Sh STANDARDS The .Nm utility implements a subset of the specification given in .St -p1003.1-2008 . .Sh BUGS The list of supported locales is perpetually incomplete.