[BACK]Return to locale.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / locale

File: [local] / src / usr.bin / locale / locale.1 (download)

Revision 1.2, Mon Jun 3 17:06:29 2013 UTC (11 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.1: +4 -3 lines

nicer ENVIRONMENT;

.\" $OpenBSD: locale.1,v 1.2 2013/06/03 17:06:29 jmc Exp $
.\"
.\" Copyright 2013 Stefan Sperling <stsp@openbsd.org>
.\"
.\" 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:
.Pp
.Bl -tag -width LC_MONETARYXXX -compact
.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.