1 .TH LOCALEDEF 1 "May 20, 2005"
3 localedef \- compile locale definition files
11 .B "localedef \-\-list\-archive"
14 .B "localedef \-\-delete\-from\-archive"
18 .B "localedef \-\-add\-to\-archive"
22 .B "localedef \-\-version"
24 .B "localedef \-\-help"
26 .B "localedef \-\-usage"
32 program reads the indicated
36 files, compiles them to a binary form quickly usable by the
38 functions in the C library, and places the output in
43 contains a slash character ('/'), it is directly the name of the output
45 In this case, there is a separate output file for each locale category
46 (LC_CTIME, LC_NUMERIC, and so on).
52 is the name of a subdirectory in
54 where per-category compiled files are placed.
58 is the name of a locale and the compiled locale data is added to the
60 .BR /usr/lib/locale/locale-archive .
64 aborts if the directory in which it tries to write locale files has
65 not already been created.
74 is given, or if it is given as a dash
77 reads from standard input.
79 Most options can have either short or long forms. If multiple short
80 options are used, they can be combined in one word (for example,
85 If a short option takes an argument, the argument can be given separately
88 or it can be written together with the option letter
90 If a long option takes an argument, the argument can be given separately
91 as the next word, or it can be written as option=argument
92 .RB ( \-\-charmap=foo ).
93 .SS "Operation selection options"
96 to do something else than compile locale definitions.
97 Only one of these should be used at a time.
99 .B \-\-delete\-from\-archive
100 Delete the named locales from the locale archive file.
103 List the locales contained in the locale archive file.
105 .B \-\-add\-to\-archive
108 directories to the locale archive file.
109 The directories should have been created by previous runs of
112 .BR \-\-no\-archive .
114 Some of the following options are only sensible for some operations; hopefully it is self-evident which ones.
116 .BI \-f " charmapfile" ", \-\-charmap=" charmapfile
117 Specify the file that defines the symbolic character names that are
118 used by the input file. If the file is in the default directory for
119 character maps, it is not necessary to specify the full pathname.
120 This default directory is printed by
121 .BR "localedef \-\-help" .
123 .BI \-i " inputfile" ", \-\-inputfile=" inputfile
124 Specify the locale definition file to compile. If
128 will also look in the directories specified by the environment variable
130 and in the default directory for locale definition files. This default
131 directory is printed by
132 .BR "localedef \-\-help" .
134 .BI \-u " repertoirefile" ", \-\-repertoire-map=" repertoirefile
135 Read mappings from symbolic names to Unicode UCS4 values from
138 .BI \-A " aliasfile" ", \-\-alias\-file=" aliasfile
141 to look up aliases for locale names.
142 There is no default aliases file.
144 .BI \-\-prefix= pathname
145 Set prefix to be prepended to the full archive pathname.
146 By default, the prefix is empty.
147 Setting the prefix to
149 the archive would be placed in
150 .BR foo/usr/lib/locale/locale-archive .
153 Write the output files even if warnings were generated about the input
157 Create old-style tables.
159 .B "\-v, \-\-verbose"
160 Generate extra warnings about errors that are normally ignored.
163 Suppress all notifications and warnings, and report only fatal errors.
166 Conform strictly to POSIX. Implies
168 This option currently has no other effect. Posix conformance is
169 assumed if the environment variable
174 Replace a locale in the locale archive file.
175 Without this option, if the locale is in the archive file already,
179 Do not use the locale archive file, instead create
181 as a subdirectory in the same directory as the locale archive file,
182 and create separate output files for locale categories in it.
185 Print a usage summary and exit. Also prints the default paths used by
189 Print a short usage summary and exit.
191 .B "\-V, \-\-version"
192 Print the version number, license, and disclaimer of warranty for
199 flag is assumed if this environment variable is set.
202 A colon separated list of default directories for locale definition files.
205 .B /usr/share/i18n/charmaps
206 Usual default charmap path.
208 .B /usr/share/i18n/locales
209 Usual default path for locale source files.
211 .B /usr/share/i18n/repertoiremaps
212 Usual default repertoire map path.
214 .B /usr/lib/locale/locale-archive
215 Usual default locale archive location.
217 .IB outputpath/ LC_COLLATE
218 One of the output files. It describes the rules for comparing strings
219 in the locale's alphabet.
221 .IB outputpath/ LC_CTYPE
222 One of the output files. It contains information about character
223 cases and case conversions for the locale.
225 .IB outputpath/ LC_MONETARY
226 One of the output files. It describes the way monetary values should
227 be formatted in the locale.
229 .IB outputpath/ LC_MESSAGES/SYS_LC_MESSAGES
230 One of the output files. It contains information about the language
231 messages should be printed in, and what an affirmative or negative
234 .IB outputpath/ LC_NUMERIC
235 One of the output files. It describes the rules for formatting
236 numbers in the locale.
238 .IB outputpath/ LC_TIME
239 One of the output files. It describes the rules for formatting
240 times and dates in the locale.
242 .IB outputpath/ LC_PAPER
243 One of the output files. It describes the default paper size
246 .IB outputpath/ LC_NAME
247 One of the output files. It describes the rules for formatting
250 .IB outputpath/ LC_ADDRESS
251 One of the output files. It describes the rules for formatting
252 addresses, and other location information in the locale.
254 .IB outputpath/ LC_TELEPHONE
255 One of the output files. It describes the rules for formatting
256 telephone numbers in the locale.
258 .IB outputpath/ LC_MEASUREMENT
259 One of the output files. It describes the rules for measurement in the
260 locale, e.g. Metric or other units.
262 .IB outputpath/ LC_IDENTIFICATION
263 One of the output files. It identifies the elements within the locale.
265 Compile the locale files for Finnish in the UTF-8 character set
266 and add it to the default locale archive with the name
270 localedef \-f UTF\-8 \-i fi_FI fi_FI.UTF\-8
273 The same, but generate files into the current directory (note that the
274 last argument must then contain a slash):
277 localedef \-f UTF\-8 \-i fi_FI ./
280 .BR locale "(5), " locale "(7), " locale (1)
282 The program was written by Ulrich Drepper.
284 This manual page was written by Richard Braakman <dark@xs4all.nl> on
285 behalf of the Debian GNU/Linux Project and anyone else who wants it.
286 It was amended by Alastair McKinstry <mckinstry@computer.org> to
287 explain new ISO 14652 elements,
288 and amended further by Lars Wirzenius <liw@iki.fi> to document new
289 functionality (as of GNU C library 2.3.5).
290 The manpage is not supported by the GNU libc maintainers and may be
293 This program conforms to the POSIX standard P1003.2