1 .\" Copyright (C) 1994 Jochen Hein (Hein@Student.TU-Clausthal.de)
2 .\" Copyright (C) 2008 Petr Baudis (pasky@suse.cz)
4 .\" %%%LICENSE_START(GPLv2+_SW_3_PARA)
5 .\" This program is free software; you can redistribute it and/or modify
6 .\" it under the terms of the GNU General Public License as published by
7 .\" the Free Software Foundation; either version 2 of the License, or
8 .\" (at your option) any later version.
10 .\" This program is distributed in the hope that it will be useful,
11 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
12 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 .\" GNU General Public License for more details.
15 .\" You should have received a copy of the GNU General Public
16 .\" License along with this manual; if not, see
17 .\" <http://www.gnu.org/licenses/>.
20 .\" 2008-06-17 Petr Baudis <pasky@suse.cz>
21 .\" LC_TIME: Describe first_weekday and first_workday
23 .TH LOCALE 5 2014-01-18 "Linux" "Linux User Manual"
25 locale \- describes a locale definition file
29 definition files contains all the information that the
31 command needs to convert it into the binary locale database.
33 The definition files consist of sections which each describe a
34 locale category in detail.
36 The locale definition file starts with a header that may consist
37 of the following keywords:
40 is followed by a character that should be used as the
41 escape-character for the rest of the file to mark characters that
42 should be interpreted in a special way.
43 It defaults to the backslash (\\).
46 is followed by a character that will be used as the
47 comment-character for the rest of the file.
48 It defaults to the number sign (#).
50 The locale definition has one part for each locale category.
51 Each part can be copied from another existing locale or
52 can be defined from scratch.
53 If the category should be copied,
54 the only valid keyword in the definition is
56 followed by the name of the locale which should be copied.
57 .\" FIXME glibc 2.2.2 added new nonstandard locale categories:
58 .\" LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_NAME,
59 .\" LC_PAPER, LC_TELEPHONE. These need to be documented.
61 The definition for the
63 category starts with the string
67 There are the following keywords allowed:
70 followed by a list of uppercase letters.
75 are included automatically.
76 Characters also specified as
85 followed by a list of lowercase letters.
90 are included automatically.
91 Characters also specified as
100 followed by a list of letters.
101 All character specified as either
105 are automatically included.
106 Characters also specified as
115 followed by the characters classified as numeric digits.
122 They are included by default in this class.
125 followed by a list of characters defined as white-space
127 Characters also specified as
140 .BR <carriage-return> ,
144 are automatically included.
147 followed by a list of control characters.
148 Characters also specified as
161 followed by a list of punctuation characters.
172 character are not allowed.
175 followed by a list of printable characters, not including the
178 The characters defined as
186 are automatically included.
187 Characters also specified as
192 followed by a list of printable characters, including the
195 The characters defined as
204 character are automatically included.
205 Characters also specified as
210 followed by a list of characters classified as hexadecimal
212 The decimal digits must be included followed by one or
213 more set of six characters in ascending order.
215 characters are included by default:
227 followed by a list of characters classified as
233 are automatically included.
236 followed by a list of mappings from lowercase to uppercase
238 Each mapping is a pair of a lowercase and an uppercase letter
241 and enclosed in parentheses.
242 The members of the list are separated
246 followed by a list of mappings from uppercase to lowercase
248 If the keyword tolower is not present, the reverse of the
249 toupper list is used.
253 definition ends with the string
258 category defines the rules for collating characters.
260 limitations of libc not all POSIX-options are implemented.
262 The definition starts with the string
266 There are the following keywords allowed:
272 The order-definition starts with a line:
276 followed by a list of keywords out of
281 The order definition consists of lines that describe the order
282 and is terminated with the keyword
286 For more details see the sources in
296 definition ends with the string
297 .IR "END LC_COLLATE" .
299 The definition starts with the string
303 There are the following keywords allowed:
306 followed by the international currency symbol.
308 4-character string containing the international currency symbol as
309 defined by the ISO 4217 standard (three characters) followed by a
313 followed by the local currency symbol.
316 followed by the string that will be used as the decimal delimiter
317 when formatting monetary quantities.
320 followed by the string that will be used as a group separator
321 when formatting monetary quantities.
324 followed by a string that describes the formatting of numeric
328 followed by a string that is used to indicate a positive sign for
332 followed by a string that is used to indicate a negative sign for
336 followed by the number of fractional digits that should be used when
338 .BR int_curr_symbol .
341 followed by the number of fractional digits that should be used when
343 .BR currency_symbol .
346 followed by an integer set to
352 should precede the formatted monetary quantity or set to
354 if the symbol succeeds the value.
357 followed by an integer.
361 means that no space should be printed between the symbol and the
365 means that a space should be printed between the symbol and the
369 means that a space should be printed between the symbol and the
370 sign string, if adjacent.
377 - the symbol succeeds the value.
380 - the symbol precedes the value.
386 if no space separates the
390 from the value for a negative monetary quantity, set to
392 if a space separates the symbol from the value and set to
394 if a space separates the symbol and the sign string, if adjacent.
400 Parentheses enclose the quantity and the
403 .IR int_curr_symbol .
406 The sign string precedes the quantity and the
409 .IR int_curr_symbol .
412 The sign string succeeds the quantity and the
415 .IR int_curr_symbol .
418 The sign string precedes the
421 .IR int_curr_symbol .
424 The sign string succeeds the
427 .IR int_curr_symbol .
434 Parentheses enclose the quantity and the
437 .IR int_curr_symbol .
440 The sign string precedes the quantity and the
443 .IR int_curr_symbol .
446 The sign string succeeds the quantity and the
449 .IR int_curr_symbol .
452 The sign string precedes the
455 .IR int_curr_symbol .
458 The sign string succeeds the
461 .IR int_curr_symbol .
466 definition ends with the string
467 .IR "END LC_MONETARY" .
469 The definition starts with the string
473 The following keywords are allowed:
476 followed by the string that will be used as the decimal delimiter
477 when formatting numeric quantities.
480 followed by the string that will be used as a group separator
481 when formatting numeric quantities.
484 followed by a string that describes the formatting of numeric
489 definition ends with the string
490 .IR "END LC_NUMERIC" .
492 The definition starts with the string
496 The following keywords are allowed:
499 followed by a list of abbreviated names of the days of the week.
500 The list starts with the first day of the week
506 followed by a list of names of the days of the week.
507 The list starts with the first day of the week
513 followed by a list of abbreviated month names.
516 followed by a list of month names.
519 The appropriate representation of the
526 The appropriate date and time format.
529 The appropriate date format.
532 The appropriate time format.
535 The appropriate time format when using 12h clock format.
538 followed by a list of three values:
539 The number of days in a week (by default 7),
540 a date of beginning of the week (by default corresponds to Sunday),
541 and the minimal length of the first week in year (by default 4).
542 Regarding the start of the week,
544 shall be used for Sunday and
546 shall be used for Monday.
547 Thus, countries using
549 should have local Sunday name as the first day in the
552 while countries using
554 should have Monday translation as the first item in the
558 .IR first_weekday " (since glibc 2.2)"
559 Number of the first day from the
561 list to be shown in calendar applications.
564 corresponds to either Sunday or Monday depending
565 on the value of the second
569 .IR first_workday " (since glibc 2.2)"
570 Number of the first working day from the
576 definition ends with the string
579 The definition starts with the string
583 The following keywords are allowed:
586 followed by a regular expression that describes possible
590 followed by a regular expression that describes possible
595 definition ends with the string
596 .IR "END LC_MESSAGES" .
598 See the POSIX.2 standard for details.
601 \(em database for the current locale setting of that category
603 /usr/lib/nls/charmap/* \(em charmap-files
605 POSIX.2, ISO/IEC 14652.
607 This manual page isn't complete.
609 .\" Jochen Hein (Hein@Student.TU-Clausthal.de)