Fri Jan 2 00:37:41 2009 UTC ()
Document new -t flag, bump date.


(wiz)
diff -r1.13 -r1.14 src/usr.bin/mklocale/mklocale.1

cvs diff -r1.13 -r1.14 src/usr.bin/mklocale/mklocale.1 (expand / switch to unified diff)

--- src/usr.bin/mklocale/mklocale.1 2004/01/24 17:03:26 1.13
+++ src/usr.bin/mklocale/mklocale.1 2009/01/02 00:37:40 1.14
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: mklocale.1,v 1.13 2004/01/24 17:03:26 wiz Exp $ 1.\" $NetBSD: mklocale.1,v 1.14 2009/01/02 00:37:40 wiz Exp $
2.\" FreeBSD: src/usr.bin/mklocale/mklocale.1,v 1.6 1999/09/20 09:15:21 phantom Exp 2.\" FreeBSD: src/usr.bin/mklocale/mklocale.1,v 1.6 1999/09/20 09:15:21 phantom Exp
3.\" 3.\"
4.\" Copyright (c) 1993, 1994 4.\" Copyright (c) 1993, 1994
5.\" The Regents of the University of California. All rights reserved. 5.\" The Regents of the University of California. All rights reserved.
6.\" 6.\"
7.\" This code is derived from software contributed to Berkeley by 7.\" This code is derived from software contributed to Berkeley by
8.\" Paul Borman at Krystal Technologies. 8.\" Paul Borman at Krystal Technologies.
9.\" 9.\"
10.\" Redistribution and use in source and binary forms, with or without 10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions 11.\" modification, are permitted provided that the following conditions
12.\" are met: 12.\" are met:
13.\" 1. Redistributions of source code must retain the above copyright 13.\" 1. Redistributions of source code must retain the above copyright
14.\" notice, this list of conditions and the following disclaimer. 14.\" notice, this list of conditions and the following disclaimer.
@@ -23,73 +23,78 @@ @@ -23,73 +23,78 @@
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE. 32.\" SUCH DAMAGE.
33.\" 33.\"
34.\" @(#)mklocale.1 8.2 (Berkeley) 4/18/94 34.\" @(#)mklocale.1 8.2 (Berkeley) 4/18/94
35.\" 35.\"
36.Dd April 18, 1994 36.Dd January 2, 2009
37.Dt MKLOCALE 1 37.Dt MKLOCALE 1
38.Os 38.Os
39.Sh NAME 39.Sh NAME
40.Nm mklocale 40.Nm mklocale
41.Nd make LC_CTYPE locale files 41.Nd make LC_CTYPE locale files
42.Sh SYNOPSIS 42.Sh SYNOPSIS
43.Nm mklocale 43.Nm mklocale
44.Op Fl d 44.Op Fl d
 45.Op Fl t Ar type
45\*[Lt] 46\*[Lt]
46.Ar src-file 47.Ar source
47\*[Gt] 48\*[Gt]
48.Ar language/LC_CTYPE 49.Ar language/LC_CTYPE
49.Nm mklocale 50.Nm mklocale
50.Op Fl d 51.Op Fl d
 52.Op Fl t Ar type
51.Fl o 53.Fl o
52.Ar language/LC_CTYPE 54.Ar language/LC_CTYPE
53.Ar src-file 55.Ar source
54.Sh DESCRIPTION 56.Sh DESCRIPTION
55The 57The
56.Nm mklocale 58.Nm mklocale
57utility reads an 59utility reads an
58.Dv LC_CTYPE 60.Dv LC_CTYPE
59source file from standard input and produces an 61source file from standard input and produces an
60.Dv LC_CTYPE 62.Dv LC_CTYPE
61binary file on standard output suitable for placement in 63binary file on standard output suitable for placement in
62.Pa /usr/share/locale/\*[Lt]language\*[Gt]/LC_CTYPE . 64.Pa /usr/share/locale/\*[Lt]language\*[Gt]/LC_CTYPE .
63.Pp 65.Pp
64The format of 66The format of
65.Ar src-file 67.Ar source
66is quite simple. 68is quite simple.
67It consists of a series of lines which start with a keyword and have 69It consists of a series of lines which start with a keyword and have
68associated data following. 70associated data following.
69C style comments are used 71C style comments are used
70to place comments in the file. 72to place comments in the file.
71.Pp 73.Pp
72Following options are available: 74Following options are available:
73.Bl -tag -width XXX 75.Bl -tag -width XXX
74.It Fl d 76.It Fl d
75Turns on debugging messages. 77Turns on debugging messages.
76.It Fl o 78.It Fl o
77Specify output file. 79Specify output file.
 80.It Fl t
 81Generate output in new-style LC_{MONETARY,NUMERIC,TIME,MESSAGES}
 82locale-db format.
78.El 83.El
79.Pp 84.Pp
80Besides the keywords which will be listed below, 85Besides the keywords which will be listed below,
81the following are valid tokens in 86the following are valid tokens in
82.Ar src-file : 87.Ar source :
83.Bl -tag -width literal 88.Bl -tag -width literal
84.It Dv RUNE 89.It Dv RUNE
85A 90A
86.Dv RUNE 91.Dv RUNE
87may be any of the following: 92may be any of the following:
88.Bl -tag -width 0x[0-9a-z]* 93.Bl -tag -width 0x[0-9a-z]*
89.It Ar 'x' 94.It Ar 'x'
90The ASCII character 95The ASCII character
91.Ar x . 96.Ar x .
92.It Ar '\ex' 97.It Ar '\ex'
93The ANSI C character 98The ANSI C character
94.Ar \ex 99.Ar \ex
95where 100where