| @@ -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 |
55 | The | | 57 | The |
56 | .Nm mklocale | | 58 | .Nm mklocale |
57 | utility reads an | | 59 | utility reads an |
58 | .Dv LC_CTYPE | | 60 | .Dv LC_CTYPE |
59 | source file from standard input and produces an | | 61 | source file from standard input and produces an |
60 | .Dv LC_CTYPE | | 62 | .Dv LC_CTYPE |
61 | binary file on standard output suitable for placement in | | 63 | binary 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 |
64 | The format of | | 66 | The format of |
65 | .Ar src-file | | 67 | .Ar source |
66 | is quite simple. | | 68 | is quite simple. |
67 | It consists of a series of lines which start with a keyword and have | | 69 | It consists of a series of lines which start with a keyword and have |
68 | associated data following. | | 70 | associated data following. |
69 | C style comments are used | | 71 | C style comments are used |
70 | to place comments in the file. | | 72 | to place comments in the file. |
71 | .Pp | | 73 | .Pp |
72 | Following options are available: | | 74 | Following options are available: |
73 | .Bl -tag -width XXX | | 75 | .Bl -tag -width XXX |
74 | .It Fl d | | 76 | .It Fl d |
75 | Turns on debugging messages. | | 77 | Turns on debugging messages. |
76 | .It Fl o | | 78 | .It Fl o |
77 | Specify output file. | | 79 | Specify output file. |
| | | 80 | .It Fl t |
| | | 81 | Generate output in new-style LC_{MONETARY,NUMERIC,TIME,MESSAGES} |
| | | 82 | locale-db format. |
78 | .El | | 83 | .El |
79 | .Pp | | 84 | .Pp |
80 | Besides the keywords which will be listed below, | | 85 | Besides the keywords which will be listed below, |
81 | the following are valid tokens in | | 86 | the 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 |
85 | A | | 90 | A |
86 | .Dv RUNE | | 91 | .Dv RUNE |
87 | may be any of the following: | | 92 | may 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' |
90 | The ASCII character | | 95 | The ASCII character |
91 | .Ar x . | | 96 | .Ar x . |
92 | .It Ar '\ex' | | 97 | .It Ar '\ex' |
93 | The ANSI C character | | 98 | The ANSI C character |
94 | .Ar \ex | | 99 | .Ar \ex |
95 | where | | 100 | where |