Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
locale(5)
Edit
PageHistory
Diff
Info
LikePages
locale !!!locale NAME DESCRIPTION SYNTAX FILES BUGS AUTHOR CONFORMING TO SEE ALSO ---- !!NAME locale - Describes a locale definition file !!DESCRIPTION The __locale__ definition files contains all the information that the __localedef(1)__ command needs to convert it into the binary locale database. The definition files consist of sections which each describe a locale category in detail. !!SYNTAX The locale definition file starts with a header, that may consist of the following keywords: '''' is followed by a character that should be used as the escape-character for the rest of the file to mark characters that should be interpreted in a special way. It defaults to the backslash ( __\__ ). '''' is followed by a character that will be used as the comment-character for the rest of the file. It defaults to the number sign ( __#__ ). The locale definitions is divided it one part for each locale category. Each part can be copied from another existing locale or can be defined from scratch. If the category should be copied, the only valid keyword in the definition is __copy__ followed by the name of the locale which should be copied. __LC_CTYPE__ __LC_CTYPE__ category starts with the string ''LC_CTYPE'' in the first column. There are the following keywords allowed: ''upper'' followed by a list of uppercase letters. The letters __A__ trough __Z__ are included automatically. Characters also specified as __cntrl, digit, punct,__ or __space__ are not allowed. ''lower'' followed by a list of lowercase letters. The letters __a__ trough __z__ are included automatically. Characters also specified as __cntrl, digit, punct,__ or __space__ are not allowed. ''alpha'' followed by a list of letters. All character specified as either __upper__ or __lower__ are automatically included. Characters also specified as __cntrl, digit, punct,__ or __space__ are not allowed. ''digit'' followed by the characters classified as numeric digits. Only the digits __0__ trough __9__ are allowed. They are included by default in this class. ''space'' followed by a list of characters defined as white-space characters. Characters also specified as __upper, lower, alpha, digit, graph,__ or __xdigit__ are not allowed. The characters __ __ and ____ are automatically included. ''cntrl'' followed by a list of control characters. Characters also specified as __upper, lower, alpha, digit, punct, graph, print__ or __xdigit__ are not allowed. ''punct'' followed by a list of punctuation characters. Characters also specified as __upper, lower, alpha, digit, cntrl, xdigit__ or the ____ character are not allowed. ''graph'' followed by a list of printable characters, not including the ____ character. The characters defined as __upper, lower, alpha, digit, xdigit__ and __punct__ are automatically included. Characters also specified as __cntrl__ are not allowed. ''print'' followed by a list of printable characters, including the ____ character. The characters defined as __upper, lower, alpha, digit, xdigit, punct__ and the ____ character are automatically included. Characters also specified as __cntrl__ are not allowed. ''xdigit'' followed by a list of characters classified as hexadecimal digits. The decimal digits must be included followed by one or more set of six characters in ascending order. The following characters are included by default: __0__ trough __9, a__ trough __f, A__ trough __F.__ ''blank'' followed by a list of characters classified as __blank.__ The characters ____ and ____ are automatically included. ''toupper'' followed by a list of mappings from lowercase to uppercase letters. Each mapping is a pair of a lowercase and an uppercase letter separated with a __,__ and enclosed in parentheses. The members of the list are separated with semicolons. ''tolower'' followed by a list of mappings from uppercase to lowercase letters. If the keyword tolower is not present, the reverse of the toupper list is used. The __LC_CTYPE__ definition ends with the string ''END LC_CYTPE.'' __LC_COLLATE__ The __LC_COLLATE__ category defines the rules for collating characters. Due to limitations of libc not all POSIX-options are implemented. The definition starts with the string __LC_COLLATE__ in the first column. There are the following keywords allowed: ''collating-element'' ''collating-symbol'' The order-definition starts with a line: ''order_start'' followed by a list of keywords out of __forward, backward__ or __position.__ The order definition consists of lines that describe the order and is terminated with the keyword ''order_end.'' For more details see the sources in __/usr/lib/nls/src__ notably the examples __POSIX, Example__ and __Example2__ The __LC_COLLATE__ definition ends with the string ''END LC_COLLATE.'' __LC_MONETARY__ The definition starts with the string __LC_MONETARY__ in the first column. There are the following keywords allowed: ''int_curr_symbol'' followed by the international currency symbol. This must be a four character string containing the international currency symbol as defined by the ISO 4217 standard (three characters) followed by a separator. ''currency_symbol'' followed by the local currency symbol. ''mon_decimal_point'' followed by the string that will be used as the decimal delimiter when formatting monetary quantities. ''mon_thousands_sep'' followed by the string that will be used as a group separator when formatting monetary quantities. ''mon_grouping'' followed by a string that describes the formatting of numeric quantities. ''positive_sign'' followed by a string that is used to indicate a positive sign for monetary quantities. ''negative_sign'' followed by a string that is used to indicate a negative sign for monetary quantities. ''int_frac_digits'' followed by the number of fractional digits that should be used when formatting with the __int_curr_symbol.__ ''frac_digits'' followed by the number of fractional digits that should be used when formatting with the __currency_symbol.__ ''p_cs_precedes'' followed by an integer set to __1__ if the ''currency_symbol'' or ''int_curr_symbol'' should precede the formatted monetary quantity or set to __0__ if the symbol succeeds the value. ''p_sep_by_space'' followed by an integer. __0__ means that no space should be printed between the symbol and the value. __1__ means that a space should be printed between the symbol and the value. __2__ means that a space should be printed between the symbol and the sign string, if adjacent. ''n_cs_precedes'' __0__ - the symbol succeeds the value __1__ - the symbol precedes the value ''n_sep_by_space'' An integer set to __0__ if no space separates the ''currency_symbol'' or ''int_curr_symbol'' from the value for a negative monetary quantity, set to __1__ if a space separates the symbol from the value and set to __2__ if a space separates the symbol and the sign string, if adjacent. ''p_sign_posn'' __0__ Parentheses enclose the quantity and the ''currency_symbol'' or ''int_curr_symbol.'' __1__ The sign string precedes the quantity and the ''currency_symbol'' or the ''int_curr_symbol.'' __2__ The sign string succeeds the quantity and the ''currency_symbol'' or the ''int_curr_symbol.'' __3__ The sign string precedes the ''currency_symbol'' or the ''int_curr_symbol.'' __4__ The sign string succeeds the ''currency_symbol'' or the ''int_curr_symbol.'' ''n_sign_posn'' __0__ Parentheses enclose the quantity and the ''currency_symbol'' or ''int_curr_symbol.'' __1__ The sign string precedes the quantity and the ''currency_symbol'' or the ''int_curr_symbol.'' __2__ The sign string succeeds the quantity and the ''currency_symbol'' or the ''int_curr_symbol.'' __3__ The sign string precedes the ''currency_symbol'' or the ''int_curr_symbol.'' __4__ The sign string succeeds the ''currency_symbol'' or the ''int_curr_symbol.'' The __LC_MONETARY__ definition ends with the string ''END LC_MONETARY.'' __LC_NUMERIC__ The definition starts with the string __LC_NUMERIC__ in the first column. There are the following keywords allowed: ''decimal_point'' followed by the string that will be used as the decimal delimiter when formatting numeric quantities. ''thousands_sep'' followed by the string that will be used as a group separator when formatting numeric quantities. ''grouping'' followed by a string that describes the formatting of numeric quantities. The __LC_NUMERIC__ definition ends with the string ''END LC_NUMERIC.'' __LC_TIME__ The definition starts with the string __LC_TIME__ in the first column. There are the following keywords allowed: ''abday'' followed by a list of abbreviated weekday names. The list starts with the Sunday or it's translation. ''day'' followed by a list of weekday names. The list starts with the Sunday. ''abmon'' followed by a list of abbreviated month names. ''mon'' followed by a list of month names. ''am_pm'' The appropriate representation of the __am__ and __pm__ strings. ''d_t_fmt'' The appropriate date and time format. ''d_fmt'' The appropriate date format. ''t_fmt'' The appropriate time format. ''t_fmt_ampm'' The appropriate time format when using 12h clock format. The __LC_TIME__ definition ends with the string ''END LC_TIME.'' __LC_MESSAGES__ The definition starts with the string __LC_MESSAGES__ in the first column. There are the following keywords allowed: ''yesexpr'' followed by a regular expression that describes possible yes-responses. ''noexpr'' followed by a regular expression that describes possible no-responses. The __LC_MESSAGES__ definition ends with the string ''END LC_MESSAGES.'' See the POSIX.2 standard for details. !!FILES /usr/lib/locale/ - database for the current locale setting of that category /usr/lib/nls/charmap/* - charmap-files !!BUGS The manpage isn't complete. !!AUTHOR Jochen Hein (Hein@Student.TU-Clausthal.de) !!CONFORMING TO POSIX.2 !!SEE ALSO setlocale(3), localeconv(3), charmap(5), locale(1), localedef(1) ----
19 pages link to
locale(5)
:
Man5l
asprintf(3)
charmap(5)
dprintf(3)
ed(1)
environ(7)
fprintf(3)
localedef(1)
printf(3)
red(1)
snprintf(3)
sprintf(3)
EnvironmentVariable
vasprintf(3)
vdprintf(3)
vfprintf(3)
vprintf(3)
vsprintf(3)
vsnprintf(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.