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

Annotation of src/usr.bin/locale/locale.1, Revision 1.2

1.2     ! jmc         1: .\" $OpenBSD: locale.1,v 1.1 2013/06/03 14:27:50 stsp Exp $
1.1       stsp        2: .\"
                      3: .\" Copyright 2013 Stefan Sperling <stsp@openbsd.org>
                      4: .\"
                      5: .\" Permission to use, copy, modify, and distribute this software for any
                      6: .\" purpose with or without fee is hereby granted, provided that the above
                      7: .\" copyright notice and this permission notice appear in all copies.
                      8: .\"
                      9: .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     10: .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     11: .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     12: .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     13: .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     14: .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     15: .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     16: .\"
1.2     ! jmc        17: .Dd $Mdocdate: June 3 2013 $
1.1       stsp       18: .Dt LOCALE 1
                     19: .Os
                     20: .Sh NAME
                     21: .Nm locale
                     22: .Nd get locale-specific information
                     23: .Sh SYNOPSIS
                     24: .Nm locale
                     25: .Op Fl a | Fl m
                     26: .Sh DESCRIPTION
                     27: If
                     28: .Nm
                     29: is invoked without any arguments, the current locale configuration is shown.
                     30: .Pp
                     31: The options are as follows:
                     32: .Bl -tag -width Ds
                     33: .It Fl a
                     34: Display a list of supported locales.
                     35: .It Fl m
                     36: Display a list of supported character sets.
                     37: .El
                     38: .Sh ENVIRONMENT
                     39: The locale configuration consists of the following environment variables:
1.2     ! jmc        40: .Pp
        !            41: .Bl -tag -width LC_MONETARYXXX -compact
1.1       stsp       42: .It Dv LC_ALL
                     43: Overrides all other LC_* variables below.
                     44: .It Dv LC_COLLATE
                     45: Locale for string collation routines.
                     46: .It Dv LC_CTYPE
                     47: Locale for character set.
                     48: .It Dv LC_MONETARY
                     49: Locale for formatting monetary values.
                     50: .It Dv LC_NUMERIC
                     51: Locale for formatting numbers.
                     52: .It Dv LC_TIME
                     53: Locale for formatting dates and times.
                     54: .It Dv LANG
                     55: Fallback if any of the above is unset.
                     56: .El
                     57: .Sh SEE ALSO
                     58: .Xr setlocale 3
                     59: .Sh STANDARDS
                     60: The
                     61: .Nm
                     62: utility implements a subset of the specification given in
                     63: .St -p1003.1-2008 .
                     64: .Sh BUGS
                     65: The list of supported locales is perpetually incomplete.