]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - usr.bin/locale/locale.1
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / usr.bin / locale / locale.1
1 .\"
2 .\" Copyright (c) 2003 Alexey Zelkin <phantom@FreeBSD.org>
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 .\" SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD$
27 .\"
28 .Dd November 1, 2005
29 .Dt LOCALE 1
30 .Os
31 .Sh NAME
32 .Nm locale
33 .Nd get locale-specific information
34 .Sh SYNOPSIS
35 .Nm
36 .Op Fl a | m
37 .Nm
38 .Op Fl ck
39 .Op Ar keyword ...
40 .Sh DESCRIPTION
41 The
42 .Nm
43 utility is supposed to provide most locale specific information to
44 the standard output.
45 .Pp
46 When
47 .Nm
48 is invoked without arguments, it will print out a summary of the current
49 locale environment, subject to the environment settings and
50 internal status.
51 .Pp
52 When
53 .Nm
54 is invoked with the
55 .Ar keyword
56 arguments, and no options are specified, it will print out the
57 values of all keywords specified, using the current locale settings.
58 .Pp
59 The following options are available:
60 .Bl -tag -width indent
61 .It Fl a
62 Print names of all available locales.
63 While looking for locales,
64 .Nm
65 will respect the
66 .Ev PATH_LOCALE
67 environment variable, and use it instead of the system's default locale
68 directory.
69 .It Fl m
70 Print names of all available charmaps.
71 .It Fl k
72 Print the names and values of all selected keywords.
73 .It Fl c
74 Print the category name for all selected keywords.
75 .El
76 .Sh IMPLEMENTATION NOTES
77 The special
78 .Pf ( Fx
79 specific) keyword
80 .Cm list
81 can be used to retrieve the human readable list of all available keywords.
82 .Sh EXIT STATUS
83 .Ex -std
84 .Sh SEE ALSO
85 .Xr setlocale 3
86 .Sh BUGS
87 Since
88 .Fx
89 does not support
90 .Em charmap Ns s
91 in their
92 .Tn POSIX
93 meaning,
94 .Nm
95 emulates the
96 .Fl m
97 option using the CODESETs listing of all available locales.