]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - usr.bin/locale/locale.1
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.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 .Fl k 
39 .Ic list
40 .Op Ar prefix
41 .Nm
42 .Op Fl ck 
43 .Ar keyword ...
44 .Sh DESCRIPTION
45 The
46 .Nm
47 utility is supposed to provide most locale specific information to
48 the standard output.
49 .Pp
50 When
51 .Nm
52 is invoked without arguments, it will print out a summary of the current
53 locale environment, subject to the environment settings and
54 internal status.
55 .Pp
56 When
57 .Nm
58 is invoked with the
59 .Ar keyword
60 arguments, and no options are specified, it will print out the
61 values of all keywords specified, using the current locale settings.
62 .Pp
63 The following options are available:
64 .Bl -tag -width indent
65 .It Fl a
66 Print names of all available locales.
67 While looking for locales,
68 .Nm
69 will respect the
70 .Ev PATH_LOCALE
71 environment variable, and use it instead of the system's default locale
72 directory.
73 .It Fl m
74 Print names of all available charmaps.
75 .It Fl k
76 Print the names and values of all selected keywords.
77 .It Fl c
78 Print the category name for all selected keywords.
79 .El
80 .Sh IMPLEMENTATION NOTES
81 The special
82 .Pf ( Fx
83 specific) keyword
84 .Cm list
85 can be used to retrieve the human readable list of all available keywords.
86 If so,
87 a prefix string can be defined to limit the amount of keywords returned.
88 .Sh EXIT STATUS
89 .Ex -std
90 .Sh SEE ALSO
91 .Xr setlocale 3
92 .Sh BUGS
93 Since
94 .Fx
95 does not support
96 .Em charmap Ns s
97 in their
98 .Tn POSIX
99 meaning,
100 .Nm
101 emulates the
102 .Fl m
103 option using the CODESETs listing of all available locales.