1877 lines
36 KiB
HTML
1877 lines
36 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of LOCALE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>LOCALE</H1>
|
|
Section: Linux User Manual (5)<BR>Updated: 2019-03-06<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
locale - describes a locale definition file
|
|
<A NAME="lbAC"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>locale</B>
|
|
|
|
definition file contains all the information that the
|
|
<B><A HREF="/cgi-bin/man/man2html?1+localedef">localedef</A></B>(1)
|
|
|
|
command needs to convert it into the binary locale database.
|
|
<P>
|
|
|
|
The definition files consist of sections which each describe a
|
|
locale category in detail.
|
|
See
|
|
<B><A HREF="/cgi-bin/man/man2html?7+locale">locale</A></B>(7)
|
|
|
|
for additional details for these categories.
|
|
<A NAME="lbAD"> </A>
|
|
<H3>Syntax</H3>
|
|
|
|
The locale definition file starts with a header that may consist
|
|
of the following keywords:
|
|
<DL COMPACT>
|
|
<DT id="1"><I>escape_char</I>
|
|
|
|
<DD>
|
|
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 (\).
|
|
<DT id="2"><I>comment_char</I>
|
|
|
|
<DD>
|
|
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 (#).
|
|
</DL>
|
|
<P>
|
|
|
|
The locale definition has 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
|
|
<I>copy</I>
|
|
|
|
followed by the name of the locale in double quotes which should be
|
|
copied.
|
|
The exceptions for this rule are
|
|
<B>LC_COLLATE</B>
|
|
|
|
and
|
|
<B>LC_CTYPE</B>
|
|
|
|
where a
|
|
<I>copy</I>
|
|
|
|
statement can be followed by locale-specific rules and selected overrides.
|
|
<P>
|
|
|
|
When defining a locale or a category from scratch, an existing system-
|
|
provided locale definition file should be used as a reference to follow
|
|
common glibc conventions.
|
|
<A NAME="lbAE"> </A>
|
|
<H3>Locale category sections</H3>
|
|
|
|
The following category sections are defined by POSIX:
|
|
<DL COMPACT>
|
|
<DT id="3">*<DD>
|
|
<B>LC_CTYPE</B>
|
|
|
|
<DT id="4">*<DD>
|
|
<B>LC_COLLATE</B>
|
|
|
|
<DT id="5">*<DD>
|
|
<B>LC_MESSAGES</B>
|
|
|
|
<DT id="6">*<DD>
|
|
<B>LC_MONETARY</B>
|
|
|
|
<DT id="7">*<DD>
|
|
<B>LC_NUMERIC</B>
|
|
|
|
<DT id="8">*<DD>
|
|
<B>LC_TIME</B>
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
In addition, since version 2.2,
|
|
the GNU C library supports the following nonstandard categories:
|
|
<DL COMPACT>
|
|
<DT id="9">*<DD>
|
|
<B>LC_ADDRESS</B>
|
|
|
|
<DT id="10">*<DD>
|
|
<B>LC_IDENTIFICATION</B>
|
|
|
|
<DT id="11">*<DD>
|
|
<B>LC_MEASUREMENT</B>
|
|
|
|
<DT id="12">*<DD>
|
|
<B>LC_NAME</B>
|
|
|
|
<DT id="13">*<DD>
|
|
<B>LC_PAPER</B>
|
|
|
|
<DT id="14">*<DD>
|
|
<B>LC_TELEPHONE</B>
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
See
|
|
<B><A HREF="/cgi-bin/man/man2html?7+locale">locale</A></B>(7)
|
|
|
|
for a more detailed description of each category.
|
|
<P>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H3>LC_ADDRESS</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_ADDRESS</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="15"><I>postal_fmt</I>
|
|
|
|
<DD>
|
|
followed by a string containing field descriptors that define
|
|
the format used for postal addresses in the locale.
|
|
The following field descriptors are recognized:
|
|
<DL COMPACT><DT id="16"><DD>
|
|
<DL COMPACT>
|
|
<DT id="17">%n<DD>
|
|
Person's name, possibly constructed with the
|
|
<B>LC_NAME</B>
|
|
|
|
<I>name_fmt</I>
|
|
|
|
keyword (since glibc 2.24).
|
|
<DT id="18">%a<DD>
|
|
Care of person, or organization.
|
|
<DT id="19">%f<DD>
|
|
Firm name.
|
|
<DT id="20">%d<DD>
|
|
Department name.
|
|
<DT id="21">%b<DD>
|
|
Building name.
|
|
<DT id="22">%s<DD>
|
|
Street or block (e.g., Japanese) name.
|
|
<DT id="23">%h<DD>
|
|
House number or designation.
|
|
<DT id="24">%N<DD>
|
|
Insert an end-of-line if the previous descriptor's value was not an empty
|
|
string; otherwise ignore.
|
|
<DT id="25">%t<DD>
|
|
Insert a space if the previous descriptor's value was not an empty string;
|
|
otherwise ignore.
|
|
<DT id="26">%r<DD>
|
|
Room number, door designation.
|
|
<DT id="27">%e<DD>
|
|
Floor number.
|
|
<DT id="28">%C<DD>
|
|
Country designation, from the
|
|
<I>country_post</I>
|
|
|
|
keyword.
|
|
<DT id="29">%l<DD>
|
|
Local township within town or city (since glibc 2.24).
|
|
<DT id="30">%z<DD>
|
|
Zip number, postal code.
|
|
<DT id="31">%T<DD>
|
|
Town, city.
|
|
<DT id="32">%S<DD>
|
|
State, province, or prefecture.
|
|
<DT id="33">%c<DD>
|
|
Country, as taken from data record.
|
|
</DL>
|
|
<P>
|
|
|
|
Each field descriptor may have an 'R' after
|
|
the '%' to specify that the
|
|
information is taken from a Romanized version string of the
|
|
entity.
|
|
</DL>
|
|
|
|
<DT id="34"><I>country_name</I>
|
|
|
|
<DD>
|
|
followed by the country name in the language of the current document
|
|
(e.g., "Deutschland" for the
|
|
<B>de_DE</B>
|
|
|
|
locale).
|
|
<DT id="35"><I>country_post</I>
|
|
|
|
<DD>
|
|
followed by the abbreviation of the country (see CERT_MAILCODES).
|
|
<DT id="36"><I>country_ab2</I>
|
|
|
|
<DD>
|
|
followed by the two-letter abbreviation of the country (ISO 3166).
|
|
<DT id="37"><I>country_ab3</I>
|
|
|
|
<DD>
|
|
followed by the three-letter abbreviation of the country (ISO 3166).
|
|
<DT id="38"><I>country_num</I>
|
|
|
|
<DD>
|
|
followed by the numeric country code (ISO 3166).
|
|
<DT id="39"><I>country_car</I>
|
|
|
|
<DD>
|
|
followed by the international licence plate country code.
|
|
<DT id="40"><I>country_isbn</I>
|
|
|
|
<DD>
|
|
followed by the ISBN code (for books).
|
|
<DT id="41"><I>lang_name</I>
|
|
|
|
<DD>
|
|
followed by the language name in the language of the current document.
|
|
<DT id="42"><I>lang_ab</I>
|
|
|
|
<DD>
|
|
followed by the two-letter abbreviation of the language (ISO 639).
|
|
<DT id="43"><I>lang_term</I>
|
|
|
|
<DD>
|
|
followed by the three-letter abbreviation of the language (ISO 639-2/T).
|
|
<DT id="44"><I>lang_lib</I>
|
|
|
|
<DD>
|
|
followed by the three-letter abbreviation of the language for library
|
|
use (ISO 639-2/B).
|
|
Applications should in general prefer
|
|
<I>lang_term</I>
|
|
|
|
over
|
|
<I>lang_lib</I>.
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_ADDRESS</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_ADDRESS</I>.
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H3>LC_CTYPE</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_CTYPE</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="45"><I>upper</I>
|
|
|
|
<DD>
|
|
followed by a list of uppercase letters.
|
|
The letters
|
|
<B>A</B>
|
|
|
|
through
|
|
<B>Z</B>
|
|
|
|
are included automatically.
|
|
Characters also specified as
|
|
<B>cntrl</B>,
|
|
|
|
<B>digit</B>,
|
|
|
|
<B>punct</B>,
|
|
|
|
or
|
|
<B>space</B>
|
|
|
|
are not allowed.
|
|
<DT id="46"><I>lower</I>
|
|
|
|
<DD>
|
|
followed by a list of lowercase letters.
|
|
The letters
|
|
<B>a</B>
|
|
|
|
through
|
|
<B>z</B>
|
|
|
|
are included automatically.
|
|
Characters also specified as
|
|
<B>cntrl</B>,
|
|
|
|
<B>digit</B>,
|
|
|
|
<B>punct</B>,
|
|
|
|
or
|
|
<B>space</B>
|
|
|
|
are not allowed.
|
|
<DT id="47"><I>alpha</I>
|
|
|
|
<DD>
|
|
followed by a list of letters.
|
|
All character specified as either
|
|
<B>upper</B>
|
|
|
|
or
|
|
<B>lower</B>
|
|
|
|
are automatically included.
|
|
Characters also specified as
|
|
<B>cntrl</B>,
|
|
|
|
<B>digit</B>,
|
|
|
|
<B>punct</B>,
|
|
|
|
or
|
|
<B>space</B>
|
|
|
|
are not allowed.
|
|
<DT id="48"><I>digit</I>
|
|
|
|
<DD>
|
|
followed by the characters classified as numeric digits.
|
|
Only the
|
|
digits
|
|
<B>0</B>
|
|
|
|
through
|
|
<B>9</B>
|
|
|
|
are allowed.
|
|
They are included by default in this class.
|
|
<DT id="49"><I>space</I>
|
|
|
|
<DD>
|
|
followed by a list of characters defined as white-space
|
|
characters.
|
|
Characters also specified as
|
|
<B>upper</B>,
|
|
|
|
<B>lower</B>,
|
|
|
|
<B>alpha</B>,
|
|
|
|
<B>digit</B>,
|
|
|
|
<B>graph</B>,
|
|
|
|
or
|
|
<B>xdigit</B>
|
|
|
|
are not allowed.
|
|
The characters
|
|
<B><space></B>,
|
|
|
|
<B><form-feed></B>,
|
|
|
|
<B><newline></B>,
|
|
|
|
<B><carriage-return></B>,
|
|
|
|
<B><tab></B>,
|
|
|
|
and
|
|
<B><vertical-tab></B>
|
|
|
|
are automatically included.
|
|
<DT id="50"><I>cntrl</I>
|
|
|
|
<DD>
|
|
followed by a list of control characters.
|
|
Characters also specified as
|
|
<B>upper</B>,
|
|
|
|
<B>lower</B>,
|
|
|
|
<B>alpha</B>,
|
|
|
|
<B>digit</B>,
|
|
|
|
<B>punct</B>,
|
|
|
|
<B>graph</B>,
|
|
|
|
<B>print</B>,
|
|
|
|
or
|
|
<B>xdigit</B>
|
|
|
|
are not allowed.
|
|
<DT id="51"><I>punct</I>
|
|
|
|
<DD>
|
|
followed by a list of punctuation characters.
|
|
Characters also
|
|
specified as
|
|
<B>upper</B>,
|
|
|
|
<B>lower</B>,
|
|
|
|
<B>alpha</B>,
|
|
|
|
<B>digit</B>,
|
|
|
|
<B>cntrl</B>,
|
|
|
|
<B>xdigit</B>,
|
|
|
|
or the
|
|
<B><space></B>
|
|
|
|
character are not allowed.
|
|
<DT id="52"><I>graph</I>
|
|
|
|
<DD>
|
|
followed by a list of printable characters, not including the
|
|
<B><space></B>
|
|
|
|
character.
|
|
The characters defined as
|
|
<B>upper</B>,
|
|
|
|
<B>lower</B>,
|
|
|
|
<B>alpha</B>,
|
|
|
|
<B>digit</B>,
|
|
|
|
<B>xdigit</B>,
|
|
|
|
and
|
|
<B>punct</B>
|
|
|
|
are automatically included.
|
|
Characters also specified as
|
|
<B>cntrl</B>
|
|
|
|
are not allowed.
|
|
<DT id="53"><I>print</I>
|
|
|
|
<DD>
|
|
followed by a list of printable characters, including the
|
|
<B><space></B>
|
|
|
|
character.
|
|
The characters defined as
|
|
<B>upper</B>,
|
|
|
|
<B>lower</B>,
|
|
|
|
<B>alpha</B>,
|
|
|
|
<B>digit</B>,
|
|
|
|
<B>xdigit</B>,
|
|
|
|
<B>punct</B>,
|
|
|
|
and the
|
|
<B><space></B>
|
|
|
|
character are automatically included.
|
|
Characters also specified as
|
|
<B>cntrl</B>
|
|
|
|
are not allowed.
|
|
<DT id="54"><I>xdigit</I>
|
|
|
|
<DD>
|
|
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:
|
|
<B>0</B>
|
|
|
|
through
|
|
<B>9</B>,
|
|
|
|
<B>a</B>
|
|
|
|
through
|
|
<B>f</B>,
|
|
|
|
<B>A</B>
|
|
|
|
through
|
|
<B>F</B>.
|
|
|
|
<DT id="55"><I>blank</I>
|
|
|
|
<DD>
|
|
followed by a list of characters classified as
|
|
<B>blank</B>.
|
|
|
|
The characters
|
|
<B><space></B>
|
|
|
|
and
|
|
<B><tab></B>
|
|
|
|
are automatically included.
|
|
<DT id="56"><I>charclass</I>
|
|
|
|
<DD>
|
|
followed by a list of locale-specific character class names
|
|
which are then to be defined in the locale.
|
|
<DT id="57"><I>toupper</I>
|
|
|
|
<DD>
|
|
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
|
|
<B>,</B>
|
|
|
|
and enclosed in parentheses.
|
|
<DT id="58"><I>tolower</I>
|
|
|
|
<DD>
|
|
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.
|
|
<DT id="59"><I>map totitle</I>
|
|
|
|
<DD>
|
|
followed by a list of mapping pairs of
|
|
characters and letters
|
|
to be used in titles (headings).
|
|
<DT id="60"><I>class</I>
|
|
|
|
<DD>
|
|
followed by a locale-specific character class definition,
|
|
starting with the class name followed by the characters
|
|
belonging to the class.
|
|
<DT id="61"><I>charconv</I>
|
|
|
|
<DD>
|
|
followed by a list of locale-specific character mapping names
|
|
which are then to be defined in the locale.
|
|
<DT id="62"><I>outdigit</I>
|
|
|
|
<DD>
|
|
followed by a list of alternate output digits for the locale.
|
|
<DT id="63"><I>map to_inpunct</I>
|
|
|
|
<DD>
|
|
followed by a list of mapping pairs of
|
|
alternate digits and separators
|
|
for input digits for the locale.
|
|
<DT id="64"><I>map to_outpunct</I>
|
|
|
|
<DD>
|
|
followed by a list of mapping pairs of
|
|
alternate separators
|
|
for output for the locale.
|
|
<DT id="65"><I>translit_start</I>
|
|
|
|
<DD>
|
|
marks the start of the transliteration rules section.
|
|
The section can contain the
|
|
<I>include</I>
|
|
|
|
keyword in the beginning followed by
|
|
locale-specific rules and overrides.
|
|
Any rule specified in the locale file
|
|
will override any rule
|
|
copied or included from other files.
|
|
In case of duplicate rule definitions in the locale file,
|
|
only the first rule is used.
|
|
<DT id="66"><DD>
|
|
A transliteration rule consist of a character to be transliterated
|
|
followed by a list of transliteration targets separated by semicolons.
|
|
The first target which can be presented in the target character set
|
|
is used, if none of them can be used the
|
|
<I>default_missing</I>
|
|
|
|
character will be used instead.
|
|
<DT id="67"><I>include</I>
|
|
|
|
<DD>
|
|
in the transliteration rules section includes
|
|
a transliteration rule file
|
|
(and optionally a repertoire map file).
|
|
<DT id="68"><I>default_missing</I>
|
|
|
|
<DD>
|
|
in the transliteration rules section
|
|
defines the default character to be used for
|
|
transliteration where none of the targets cannot be presented
|
|
in the target character set.
|
|
<DT id="69"><I>translit_end</I>
|
|
|
|
<DD>
|
|
marks the end of the transliteration rules.
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_CTYPE</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_CTYPE</I>.
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H3>LC_COLLATE</H3>
|
|
|
|
Note that glibc does not support all POSIX-defined options,
|
|
only the options described below are supported (as of glibc 2.23).
|
|
<P>
|
|
|
|
The definition starts with the string
|
|
<I>LC_COLLATE</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="70"><I>coll_weight_max</I>
|
|
|
|
<DD>
|
|
followed by the number representing used collation levels.
|
|
This keyword is recognized but ignored by glibc.
|
|
<DT id="71"><I>collating-element</I>
|
|
|
|
<DD>
|
|
followed by the definition of a collating-element symbol
|
|
representing a multicharacter collating element.
|
|
<DT id="72"><I>collating-symbol</I>
|
|
|
|
<DD>
|
|
followed by the definition of a collating symbol
|
|
that can be used in collation order statements.
|
|
<DT id="73"><I>define</I>
|
|
|
|
<DD>
|
|
followed by
|
|
<B>string</B>
|
|
|
|
to be evaluated in an
|
|
<I>ifdef</I>
|
|
|
|
<B>string</B>
|
|
|
|
/
|
|
<I>else</I>
|
|
|
|
/
|
|
<I>endif</I>
|
|
|
|
construct.
|
|
<DT id="74"><I>reorder-after</I>
|
|
|
|
<DD>
|
|
followed by a redefinition of a collation rule.
|
|
<DT id="75"><I>reorder-end</I>
|
|
|
|
<DD>
|
|
marks the end of the redefinition of a collation rule.
|
|
<DT id="76"><I>reorder-sections-after</I>
|
|
|
|
<DD>
|
|
followed by a script name to reorder listed scripts after.
|
|
<DT id="77"><I>reorder-sections-end</I>
|
|
|
|
<DD>
|
|
marks the end of the reordering of sections.
|
|
<DT id="78"><I>script</I>
|
|
|
|
<DD>
|
|
followed by a declaration of a script.
|
|
<DT id="79"><I>symbol-equivalence</I>
|
|
|
|
<DD>
|
|
followed by a collating-symbol to be equivalent to another defined
|
|
collating-symbol.
|
|
</DL>
|
|
<P>
|
|
|
|
The collation rule definition starts with a line:
|
|
<DL COMPACT>
|
|
<DT id="80"><I>order_start</I>
|
|
|
|
<DD>
|
|
followed by a list of keywords chosen from
|
|
<B>forward</B>,
|
|
|
|
<B>backward</B>,
|
|
|
|
or
|
|
<B>position</B>.
|
|
|
|
The order definition consists of lines that describe the collation
|
|
order and is terminated with the keyword
|
|
<I>order_end</I>.
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_COLLATE</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_COLLATE</I>.
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H3>LC_IDENTIFICATION</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_IDENTIFICATION</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="81"><I>title</I>
|
|
|
|
<DD>
|
|
followed by the title of the locale document
|
|
(e.g., "Maori language locale for New Zealand").
|
|
<DT id="82"><I>source</I>
|
|
|
|
<DD>
|
|
followed by the name of the organization that maintains this document.
|
|
<DT id="83"><I>address</I>
|
|
|
|
<DD>
|
|
followed by the address of the organization that maintains this document.
|
|
<DT id="84"><I>contact</I>
|
|
|
|
<DD>
|
|
followed by the name of the contact person at
|
|
the organization that maintains this document.
|
|
<DT id="85"><I>email</I>
|
|
|
|
<DD>
|
|
followed by the email address of the person or
|
|
organization that maintains this document.
|
|
<DT id="86"><I>tel</I>
|
|
|
|
<DD>
|
|
followed by the telephone number (in international format)
|
|
of the organization that maintains this document.
|
|
As of glibc 2.24, this keyword is deprecated in favor of
|
|
other contact methods.
|
|
<DT id="87"><I>fax</I>
|
|
|
|
<DD>
|
|
followed by the fax number (in international format)
|
|
of the organization that maintains this document.
|
|
As of glibc 2.24, this keyword is deprecated in favor of
|
|
other contact methods.
|
|
<DT id="88"><I>language</I>
|
|
|
|
<DD>
|
|
followed by the name of the language to which this document applies.
|
|
<DT id="89"><I>territory</I>
|
|
|
|
<DD>
|
|
followed by the name of the country/geographic extent
|
|
to which this document applies.
|
|
<DT id="90"><I>audience</I>
|
|
|
|
<DD>
|
|
followed by a description of the audience for which this document is
|
|
intended.
|
|
<DT id="91"><I>application</I>
|
|
|
|
<DD>
|
|
followed by a description of any special application
|
|
for which this document is intended.
|
|
<DT id="92"><I>abbreviation</I>
|
|
|
|
<DD>
|
|
followed by the short name for provider of the source of this document.
|
|
<DT id="93"><I>revision</I>
|
|
|
|
<DD>
|
|
followed by the revision number of this document.
|
|
<DT id="94"><I>date</I>
|
|
|
|
<DD>
|
|
followed by the revision date of this document.
|
|
</DL>
|
|
<P>
|
|
|
|
In addition, for each of the categories defined by the document,
|
|
there should be a line starting with the keyword
|
|
<I>category</I>,
|
|
|
|
followed by:
|
|
<DL COMPACT>
|
|
<DT id="95">*<DD>
|
|
a string that identifies this locale category definition,
|
|
<DT id="96">*<DD>
|
|
a semicolon, and
|
|
<DT id="97">*<DD>
|
|
one of the
|
|
<B>LC_</B><I>*</I>
|
|
|
|
identifiers.
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_IDENTIFICATION</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_IDENTIFICATION</I>.
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H3>LC_MESSAGES</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_MESSAGES</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="98"><I>yesexpr</I>
|
|
|
|
<DD>
|
|
followed by a regular expression that describes possible
|
|
yes-responses.
|
|
<DT id="99"><I>noexpr</I>
|
|
|
|
<DD>
|
|
followed by a regular expression that describes possible
|
|
no-responses.
|
|
<DT id="100"><I>yesstr</I>
|
|
|
|
<DD>
|
|
followed by the output string corresponding to "yes".
|
|
<DT id="101"><I>nostr</I>
|
|
|
|
<DD>
|
|
followed by the output string corresponding to "no".
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_MESSAGES</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_MESSAGES</I>.
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H3>LC_MEASUREMENT</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_MEASUREMENT</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="102"><I>measurement</I>
|
|
|
|
<DD>
|
|
followed by number identifying the standard used for measurement.
|
|
The following values are recognized:
|
|
<DL COMPACT><DT id="103"><DD>
|
|
<DL COMPACT>
|
|
<DT id="104"><B>1</B>
|
|
|
|
<DD>
|
|
Metric.
|
|
<DT id="105"><B>2</B>
|
|
|
|
<DD>
|
|
US customary measurements.
|
|
</DL>
|
|
</DL>
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_MEASUREMENT</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_MEASUREMENT</I>.
|
|
|
|
<A NAME="lbAL"> </A>
|
|
<H3>LC_MONETARY</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_MONETARY</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="106"><I>int_curr_symbol</I>
|
|
|
|
<DD>
|
|
followed by the international currency symbol.
|
|
This must be a
|
|
4-character string containing the international currency symbol as
|
|
defined by the ISO 4217 standard (three characters) followed by a
|
|
separator.
|
|
<DT id="107"><I>currency_symbol</I>
|
|
|
|
<DD>
|
|
followed by the local currency symbol.
|
|
<DT id="108"><I>mon_decimal_point</I>
|
|
|
|
<DD>
|
|
followed by the string that will be used as the decimal delimiter
|
|
when formatting monetary quantities.
|
|
<DT id="109"><I>mon_thousands_sep</I>
|
|
|
|
<DD>
|
|
followed by the string that will be used as a group separator
|
|
when formatting monetary quantities.
|
|
<DT id="110"><I>mon_grouping</I>
|
|
|
|
<DD>
|
|
followed by a sequence of integers separated by semicolons that
|
|
describe the formatting of monetary quantities.
|
|
See
|
|
<I>grouping</I>
|
|
|
|
below for details.
|
|
<DT id="111"><I>positive_sign</I>
|
|
|
|
<DD>
|
|
followed by a string that is used to indicate a positive sign for
|
|
monetary quantities.
|
|
<DT id="112"><I>negative_sign</I>
|
|
|
|
<DD>
|
|
followed by a string that is used to indicate a negative sign for
|
|
monetary quantities.
|
|
<DT id="113"><I>int_frac_digits</I>
|
|
|
|
<DD>
|
|
followed by the number of fractional digits that should be used when
|
|
formatting with the
|
|
<I>int_curr_symbol</I>.
|
|
|
|
<DT id="114"><I>frac_digits</I>
|
|
|
|
<DD>
|
|
followed by the number of fractional digits that should be used when
|
|
formatting with the
|
|
<I>currency_symbol</I>.
|
|
|
|
<DT id="115"><I>p_cs_precedes</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates the placement of
|
|
<I>currency_symbol</I>
|
|
|
|
for a nonnegative formatted monetary quantity:
|
|
<DL COMPACT><DT id="116"><DD>
|
|
<DL COMPACT>
|
|
<DT id="117"><B>0</B>
|
|
|
|
<DD>
|
|
the symbol succeeds the value.
|
|
<DT id="118"><B>1</B>
|
|
|
|
<DD>
|
|
the symbol precedes the value.
|
|
</DL>
|
|
</DL>
|
|
|
|
<DT id="119"><I>p_sep_by_space</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates the separation of
|
|
<I>currency_symbol</I>,
|
|
|
|
the sign string, and the value for a nonnegative formatted monetary quantity.
|
|
The following values are recognized:
|
|
<DL COMPACT><DT id="120"><DD>
|
|
<DL COMPACT>
|
|
<DT id="121"><B>0</B>
|
|
|
|
<DD>
|
|
No space separates the currency symbol and the value.
|
|
<DT id="122"><B>1</B>
|
|
|
|
<DD>
|
|
If the currency symbol and the sign string are adjacent,
|
|
a space separates them from the value;
|
|
otherwise a space separates the currency symbol and the value.
|
|
<DT id="123"><B>2</B>
|
|
|
|
<DD>
|
|
If the currency symbol and the sign string are adjacent,
|
|
a space separates them from the value;
|
|
otherwise a space separates the sign string and the value.
|
|
</DL>
|
|
</DL>
|
|
|
|
<DT id="124"><I>n_cs_precedes</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates the placement of
|
|
<I>currency_symbol</I>
|
|
|
|
for a negative formatted monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_cs_precedes</I>.
|
|
|
|
<DT id="125"><I>n_sep_by_space</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates the separation of
|
|
<I>currency_symbol</I>,
|
|
|
|
the sign string, and the value for a negative formatted monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_sep_by_space</I>.
|
|
|
|
<DT id="126"><I>p_sign_posn</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates where the
|
|
<I>positive_sign</I>
|
|
|
|
should be placed for a nonnegative monetary quantity:
|
|
<DL COMPACT><DT id="127"><DD>
|
|
<DL COMPACT>
|
|
<DT id="128"><B>0</B>
|
|
|
|
<DD>
|
|
Parentheses enclose the quantity and the
|
|
<I>currency_symbol</I>
|
|
|
|
or
|
|
<I>int_curr_symbol</I>.
|
|
|
|
<DT id="129"><B>1</B>
|
|
|
|
<DD>
|
|
The sign string precedes the quantity and the
|
|
<I>currency_symbol</I>
|
|
|
|
or the
|
|
<I>int_curr_symbol</I>.
|
|
|
|
<DT id="130"><B>2</B>
|
|
|
|
<DD>
|
|
The sign string succeeds the quantity and the
|
|
<I>currency_symbol</I>
|
|
|
|
or the
|
|
<I>int_curr_symbol</I>.
|
|
|
|
<DT id="131"><B>3</B>
|
|
|
|
<DD>
|
|
The sign string precedes the
|
|
<I>currency_symbol</I>
|
|
|
|
or the
|
|
<I>int_curr_symbol</I>.
|
|
|
|
<DT id="132"><B>4</B>
|
|
|
|
<DD>
|
|
The sign string succeeds the
|
|
<I>currency_symbol</I>
|
|
|
|
or the
|
|
<I>int_curr_symbol</I>.
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
<DT id="133"><I>n_sign_posn</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates where the
|
|
<I>negative_sign</I>
|
|
|
|
should be placed for a negative monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_sign_posn</I>.
|
|
|
|
<DT id="134"><I>int_p_cs_precedes</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates the placement of
|
|
<I>int_curr_symbol</I>
|
|
|
|
for a nonnegative internationally formatted monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_cs_precedes</I>.
|
|
|
|
<DT id="135"><I>int_n_cs_precedes</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates the placement of
|
|
<I>int_curr_symbol</I>
|
|
|
|
for a negative internationally formatted monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_cs_precedes</I>.
|
|
|
|
<DT id="136"><I>int_p_sep_by_space</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates the separation of
|
|
<I>int_curr_symbol</I>,
|
|
|
|
the sign string,
|
|
and the value for a nonnegative internationally formatted monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_sep_by_space</I>.
|
|
|
|
<DT id="137"><I>int_n_sep_by_space</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates the separation of
|
|
<I>int_curr_symbol</I>,
|
|
|
|
the sign string,
|
|
and the value for a negative internationally formatted monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_sep_by_space</I>.
|
|
|
|
<DT id="138"><I>int_p_sign_posn</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates where the
|
|
<I>positive_sign</I>
|
|
|
|
should be placed for a nonnegative
|
|
internationally formatted monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_sign_posn</I>.
|
|
|
|
<DT id="139"><I>int_n_sign_posn</I>
|
|
|
|
<DD>
|
|
followed by an integer that indicates where the
|
|
<I>negative_sign</I>
|
|
|
|
should be placed for a negative
|
|
internationally formatted monetary quantity.
|
|
The same values are recognized as for
|
|
<I>p_sign_posn</I>.
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_MONETARY</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_MONETARY</I>.
|
|
|
|
<A NAME="lbAM"> </A>
|
|
<H3>LC_NAME</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_NAME</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
Various keywords are allowed, but only
|
|
<I>name_fmt</I>
|
|
|
|
is mandatory.
|
|
Other keywords are needed only if there is common convention to
|
|
use the corresponding salutation in this locale.
|
|
The allowed keywords are as follows:
|
|
<DL COMPACT>
|
|
<DT id="140"><I>name_fmt</I>
|
|
|
|
<DD>
|
|
followed by a string containing field descriptors that define
|
|
the format used for names in the locale.
|
|
The following field descriptors are recognized:
|
|
<DL COMPACT><DT id="141"><DD>
|
|
<DL COMPACT>
|
|
<DT id="142">%f<DD>
|
|
Family name(s).
|
|
<DT id="143">%F<DD>
|
|
Family names in uppercase.
|
|
<DT id="144">%g<DD>
|
|
First given name.
|
|
<DT id="145">%G<DD>
|
|
First given initial.
|
|
<DT id="146">%l<DD>
|
|
First given name with Latin letters.
|
|
<DT id="147">%o<DD>
|
|
Other shorter name.
|
|
<DT id="148">%m<DD>
|
|
Additional given name(s).
|
|
<DT id="149">%M<DD>
|
|
Initials for additional given name(s).
|
|
<DT id="150">%p<DD>
|
|
Profession.
|
|
<DT id="151">%s<DD>
|
|
Salutation, such as "Doctor".
|
|
<DT id="152">%S<DD>
|
|
Abbreviated salutation, such as "Mr." or "Dr.".
|
|
<DT id="153">%d<DD>
|
|
Salutation, using the FDCC-sets conventions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DT id="154">%t<DD>
|
|
If the preceding field descriptor resulted in an empty string,
|
|
then the empty string, otherwise a space character.
|
|
</DL>
|
|
</DL>
|
|
|
|
<DT id="155"><I>name_gen</I>
|
|
|
|
<DD>
|
|
followed by the general salutation for any gender.
|
|
<DT id="156"><I>name_mr</I>
|
|
|
|
<DD>
|
|
followed by the salutation for men.
|
|
<DT id="157"><I>name_mrs</I>
|
|
|
|
<DD>
|
|
followed by the salutation for married women.
|
|
<DT id="158"><I>name_miss</I>
|
|
|
|
<DD>
|
|
followed by the salutation for unmarried women.
|
|
<DT id="159"><I>name_ms</I>
|
|
|
|
<DD>
|
|
followed by the salutation valid for all women.
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_NAME</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_NAME</I>.
|
|
|
|
<A NAME="lbAN"> </A>
|
|
<H3>LC_NUMERIC</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_NUMERIC</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="160"><I>decimal_point</I>
|
|
|
|
<DD>
|
|
followed by the string that will be used as the decimal delimiter
|
|
when formatting numeric quantities.
|
|
<DT id="161"><I>thousands_sep</I>
|
|
|
|
<DD>
|
|
followed by the string that will be used as a group separator
|
|
when formatting numeric quantities.
|
|
<DT id="162"><I>grouping</I>
|
|
|
|
<DD>
|
|
followed by a sequence of integers separated by semicolons
|
|
that describe the formatting of numeric quantities.
|
|
<DT id="163"><DD>
|
|
Each integer specifies the number of digits in a group.
|
|
The first integer defines the size of the group immediately
|
|
to the left of the decimal delimiter.
|
|
Subsequent integers define succeeding groups to the
|
|
left of the previous group.
|
|
If the last integer is not -1, then the size of the previous group
|
|
(if any) is repeatedly used for the remainder of the digits.
|
|
If the last integer is -1, then no further grouping is performed.
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_NUMERIC</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_NUMERIC</I>.
|
|
|
|
<A NAME="lbAO"> </A>
|
|
<H3>LC_PAPER</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_PAPER</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="164"><I>height</I>
|
|
|
|
<DD>
|
|
followed by the height, in millimeters, of the standard paper format.
|
|
<DT id="165"><I>width</I>
|
|
|
|
<DD>
|
|
followed by the width, in millimeters, of the standard paper format.
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_PAPER</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_PAPER</I>.
|
|
|
|
<A NAME="lbAP"> </A>
|
|
<H3>LC_TELEPHONE</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_TELEPHONE</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="166"><I>tel_int_fmt</I>
|
|
|
|
<DD>
|
|
followed by a string that contains field descriptors that identify
|
|
the format used to dial international numbers.
|
|
The following field descriptors are recognized:
|
|
<DL COMPACT><DT id="167"><DD>
|
|
<DL COMPACT>
|
|
<DT id="168">%a<DD>
|
|
Area code without nationwide prefix (the prefix is often "00").
|
|
<DT id="169">%A<DD>
|
|
Area code including nationwide prefix.
|
|
<DT id="170">%l<DD>
|
|
Local number (within area code).
|
|
<DT id="171">%e<DD>
|
|
Extension (to local number).
|
|
<DT id="172">%c<DD>
|
|
Country code.
|
|
<DT id="173">%C<DD>
|
|
Alternate carrier service code used for dialing abroad.
|
|
<DT id="174">%t<DD>
|
|
If the preceding field descriptor resulted in an empty string,
|
|
then the empty string, otherwise a space character.
|
|
</DL>
|
|
</DL>
|
|
|
|
<DT id="175"><I>tel_dom_fmt</I>
|
|
|
|
<DD>
|
|
followed by a string that contains field descriptors that identify
|
|
the format used to dial domestic numbers.
|
|
The recognized field descriptors are the same as for
|
|
<I>tel_int_fmt</I>.
|
|
|
|
<DT id="176"><I>int_select</I>
|
|
|
|
<DD>
|
|
followed by the prefix used to call international phone numbers.
|
|
<DT id="177"><I>int_prefix</I>
|
|
|
|
<DD>
|
|
followed by the prefix used from other countries to dial this country.
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_TELEPHONE</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_TELEPHONE</I>.
|
|
|
|
<A NAME="lbAQ"> </A>
|
|
<H3>LC_TIME</H3>
|
|
|
|
The definition starts with the string
|
|
<I>LC_TIME</I>
|
|
|
|
in the first column.
|
|
<P>
|
|
|
|
The following keywords are allowed:
|
|
<DL COMPACT>
|
|
<DT id="178"><I>abday</I>
|
|
|
|
<DD>
|
|
followed by a list of abbreviated names of the days of the week.
|
|
The list starts with the first day of the week
|
|
as specified by
|
|
<I>week</I>
|
|
|
|
(Sunday by default).
|
|
See NOTES.
|
|
<DT id="179"><I>day</I>
|
|
|
|
<DD>
|
|
followed by a list of names of the days of the week.
|
|
The list starts with the first day of the week
|
|
as specified by
|
|
<I>week</I>
|
|
|
|
(Sunday by default).
|
|
See NOTES.
|
|
<DT id="180"><I>abmon</I>
|
|
|
|
<DD>
|
|
followed by a list of abbreviated month names.
|
|
<DT id="181"><I>mon</I>
|
|
|
|
<DD>
|
|
followed by a list of month names.
|
|
<DT id="182"><I>d_t_fmt</I>
|
|
|
|
<DD>
|
|
followed by the appropriate date and time format
|
|
(for syntax, see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strftime">strftime</A></B>(3)).
|
|
|
|
<DT id="183"><I>d_fmt</I>
|
|
|
|
<DD>
|
|
followed by the appropriate date format
|
|
(for syntax, see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strftime">strftime</A></B>(3)).
|
|
|
|
<DT id="184"><I>t_fmt</I>
|
|
|
|
<DD>
|
|
followed by the appropriate time format
|
|
(for syntax, see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strftime">strftime</A></B>(3)).
|
|
|
|
<DT id="185"><I>am_pm</I>
|
|
|
|
<DD>
|
|
followed by the appropriate representation of the
|
|
<B>am</B>
|
|
|
|
and
|
|
<B>pm</B>
|
|
|
|
strings.
|
|
This should be left empty for locales not using AM/PM convention.
|
|
<DT id="186"><I>t_fmt_ampm</I>
|
|
|
|
<DD>
|
|
followed by the appropriate time format
|
|
(for syntax, see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strftime">strftime</A></B>(3))
|
|
|
|
when using 12h clock format.
|
|
This should be left empty for locales not using AM/PM convention.
|
|
<DT id="187"><I>era</I>
|
|
|
|
<DD>
|
|
followed by semicolon-separated strings that define how years are
|
|
counted and displayed for each era in the locale.
|
|
Each string has the following format:
|
|
<DL COMPACT><DT id="188"><DD>
|
|
<P>
|
|
|
|
<I>direction</I>:<I>offset</I>:<I>start_date</I>:<I>end_date</I>:<I>era_name</I>:<I>era_format</I>
|
|
|
|
<P>
|
|
|
|
The fields are to be defined as follows:
|
|
<P>
|
|
|
|
<DL COMPACT>
|
|
<DT id="189"><I>direction</I>
|
|
|
|
<DD>
|
|
Either
|
|
<B>+</B>
|
|
|
|
or
|
|
<B>-</B>.
|
|
|
|
<B>+</B>
|
|
|
|
means the years closer to
|
|
<I>start_date</I>
|
|
|
|
have lower numbers than years closer to
|
|
<I>end_date</I>.
|
|
|
|
<B>-</B>
|
|
|
|
means the opposite.
|
|
<DT id="190"><I>offset</I>
|
|
|
|
<DD>
|
|
The number of the year closest to
|
|
<I>start_date</I>
|
|
|
|
in the era, corresponding to the
|
|
<I>%Ey</I>
|
|
|
|
descriptor (see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strptime">strptime</A></B>(3)).
|
|
|
|
<DT id="191"><I>start_date</I>
|
|
|
|
<DD>
|
|
The start of the era in the form of
|
|
<I>yyyy/mm/dd</I>.
|
|
|
|
Years prior AD 1 are represented as negative numbers.
|
|
<DT id="192"><I>end_date</I>
|
|
|
|
<DD>
|
|
The end of the era in the form of
|
|
<I>yyyy/mm/dd</I>,
|
|
|
|
or one of the two special values of
|
|
<B>-*</B>
|
|
|
|
or
|
|
<B>+*</B>.
|
|
|
|
<B>-*</B>
|
|
|
|
means the ending date is the beginning of time.
|
|
<B>+*</B>
|
|
|
|
means the ending date is the end of time.
|
|
<DT id="193"><I>era_name</I>
|
|
|
|
<DD>
|
|
The name of the era corresponding to the
|
|
<I>%EC</I>
|
|
|
|
descriptor (see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strptime">strptime</A></B>(3)).
|
|
|
|
<DT id="194"><I>era_format</I>
|
|
|
|
<DD>
|
|
The format of the year in the era corresponding to the
|
|
<I>%EY</I>
|
|
|
|
descriptor (see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strptime">strptime</A></B>(3)).
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
<DT id="195"><I>era_d_fmt</I>
|
|
|
|
<DD>
|
|
followed by the format of the date in alternative era notation,
|
|
corresponding to the
|
|
<I>%Ex</I>
|
|
|
|
descriptor (see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strptime">strptime</A></B>(3)).
|
|
|
|
<DT id="196"><I>era_t_fmt</I>
|
|
|
|
<DD>
|
|
followed by the format of the time in alternative era notation,
|
|
corresponding to the
|
|
<I>%EX</I>
|
|
|
|
descriptor (see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strptime">strptime</A></B>(3)).
|
|
|
|
<DT id="197"><I>era_d_t_fmt</I>
|
|
|
|
<DD>
|
|
followed by the format of the date and time in alternative era notation,
|
|
corresponding to the
|
|
<I>%Ec</I>
|
|
|
|
descriptor (see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strptime">strptime</A></B>(3)).
|
|
|
|
<DT id="198"><I>alt_digits</I>
|
|
|
|
<DD>
|
|
followed by the alternative digits used for date and time in the locale.
|
|
<DT id="199"><I>week</I>
|
|
|
|
<DD>
|
|
followed by a list of three values separated by semicolons:
|
|
The number of days in a week (by default 7),
|
|
a date of beginning of the week (by default corresponds to Sunday),
|
|
and the minimal length of the first week in year (by default 4).
|
|
Regarding the start of the week,
|
|
<B>19971130</B>
|
|
|
|
shall be used for Sunday and
|
|
<B>19971201</B>
|
|
|
|
shall be used for Monday.
|
|
See NOTES.
|
|
<DT id="200"><I>first_weekday</I> (since glibc 2.2)
|
|
|
|
<DD>
|
|
followed by the number of the first day from the
|
|
<I>day</I>
|
|
|
|
list to be shown in calendar applications.
|
|
The default value of
|
|
<B>1</B>
|
|
|
|
corresponds to either Sunday or Monday depending
|
|
on the value of the second
|
|
<I>week</I>
|
|
|
|
list item.
|
|
See NOTES.
|
|
<DT id="201"><I>first_workday</I> (since glibc 2.2)
|
|
|
|
<DD>
|
|
followed by the number of the first working day from the
|
|
<I>day</I>
|
|
|
|
list.
|
|
The default value is
|
|
<B>2</B>.
|
|
|
|
See NOTES.
|
|
<DT id="202"><I>cal_direction</I>
|
|
|
|
<DD>
|
|
followed by a number value that indicates the direction for the
|
|
display of calendar dates, as follows:
|
|
<DL COMPACT><DT id="203"><DD>
|
|
<DL COMPACT>
|
|
<DT id="204"><B>1</B>
|
|
|
|
<DD>
|
|
Left-right from top.
|
|
<DT id="205"><B>2</B>
|
|
|
|
<DD>
|
|
Top-down from left.
|
|
<DT id="206"><B>3</B>
|
|
|
|
<DD>
|
|
Right-left from top.
|
|
</DL>
|
|
</DL>
|
|
|
|
<DT id="207"><I>date_fmt</I>
|
|
|
|
<DD>
|
|
followed by the appropriate date representation for
|
|
<B><A HREF="/cgi-bin/man/man2html?1+date">date</A></B>(1)
|
|
|
|
(for syntax, see
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strftime">strftime</A></B>(3)).
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
The
|
|
<B>LC_TIME</B>
|
|
|
|
definition ends with the string
|
|
<I>END LC_TIME</I>.
|
|
|
|
<A NAME="lbAR"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="208"><I>/usr/lib/locale/locale-archive</I>
|
|
|
|
<DD>
|
|
Usual default locale archive location.
|
|
<DT id="209"><I>/usr/share/i18n/locales</I>
|
|
|
|
<DD>
|
|
Usual default path for locale definition files.
|
|
</DL>
|
|
<A NAME="lbAS"> </A>
|
|
<H2>CONFORMING TO</H2>
|
|
|
|
POSIX.2.
|
|
<A NAME="lbAT"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
The collective GNU C library community wisdom regarding
|
|
<I>abday</I>,
|
|
|
|
<I>day</I>,
|
|
|
|
<I>week</I>,
|
|
|
|
<I>first_weekday</I>,
|
|
|
|
and
|
|
<I>first_workday</I>
|
|
|
|
states at
|
|
<A HREF="https://sourceware.org/glibc/wiki/Locales">https://sourceware.org/glibc/wiki/Locales</A>
|
|
the following:
|
|
<DL COMPACT>
|
|
<DT id="210">*<DD>
|
|
The value of the second
|
|
<I>week</I>
|
|
|
|
list item specifies the base of the
|
|
<I>abday</I>
|
|
|
|
and
|
|
<I>day</I>
|
|
|
|
lists.
|
|
<DT id="211">*<DD>
|
|
<I>first_weekday</I>
|
|
|
|
specifies the offset of the first day-of-week in the
|
|
<I>abday</I>
|
|
|
|
and
|
|
<I>day</I>
|
|
|
|
lists.
|
|
<DT id="212">*<DD>
|
|
For compatibility reasons, all glibc locales should set the value of the
|
|
second
|
|
<I>week</I>
|
|
|
|
list item to
|
|
<B>19971130</B>
|
|
|
|
(Sunday) and base the
|
|
<I>abday</I>
|
|
|
|
and
|
|
<I>day</I>
|
|
|
|
lists appropriately, and set
|
|
<I>first_weekday</I>
|
|
|
|
and
|
|
<I>first_workday</I>
|
|
|
|
to
|
|
<B>1</B>
|
|
|
|
or
|
|
<B>2</B>,
|
|
|
|
depending on whether the week and work week actually starts on Sunday or
|
|
Monday for the locale.
|
|
|
|
|
|
</DL>
|
|
<A NAME="lbAU"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+iconv">iconv</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+locale">locale</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+localedef">localedef</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+localeconv">localeconv</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+newlocale">newlocale</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+setlocale">setlocale</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strftime">strftime</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+strptime">strptime</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?3+uselocale">uselocale</A></B>(3),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+charmap">charmap</A></B>(5),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+charsets">charsets</A></B>(7),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+locale">locale</A></B>(7),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+unicode">unicode</A></B>(7),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+utf-8">utf-8</A></B>(7)
|
|
|
|
<A NAME="lbAV"> </A>
|
|
<H2>COLOPHON</H2>
|
|
|
|
This page is part of release 5.05 of the Linux
|
|
<I>man-pages</I>
|
|
|
|
project.
|
|
A description of the project,
|
|
information about reporting bugs,
|
|
and the latest version of this page,
|
|
can be found at
|
|
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="213"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="214"><A HREF="#lbAC">DESCRIPTION</A><DD>
|
|
<DL>
|
|
<DT id="215"><A HREF="#lbAD">Syntax</A><DD>
|
|
<DT id="216"><A HREF="#lbAE">Locale category sections</A><DD>
|
|
<DT id="217"><A HREF="#lbAF">LC_ADDRESS</A><DD>
|
|
<DT id="218"><A HREF="#lbAG">LC_CTYPE</A><DD>
|
|
<DT id="219"><A HREF="#lbAH">LC_COLLATE</A><DD>
|
|
<DT id="220"><A HREF="#lbAI">LC_IDENTIFICATION</A><DD>
|
|
<DT id="221"><A HREF="#lbAJ">LC_MESSAGES</A><DD>
|
|
<DT id="222"><A HREF="#lbAK">LC_MEASUREMENT</A><DD>
|
|
<DT id="223"><A HREF="#lbAL">LC_MONETARY</A><DD>
|
|
<DT id="224"><A HREF="#lbAM">LC_NAME</A><DD>
|
|
<DT id="225"><A HREF="#lbAN">LC_NUMERIC</A><DD>
|
|
<DT id="226"><A HREF="#lbAO">LC_PAPER</A><DD>
|
|
<DT id="227"><A HREF="#lbAP">LC_TELEPHONE</A><DD>
|
|
<DT id="228"><A HREF="#lbAQ">LC_TIME</A><DD>
|
|
</DL>
|
|
<DT id="229"><A HREF="#lbAR">FILES</A><DD>
|
|
<DT id="230"><A HREF="#lbAS">CONFORMING TO</A><DD>
|
|
<DT id="231"><A HREF="#lbAT">NOTES</A><DD>
|
|
<DT id="232"><A HREF="#lbAU">SEE ALSO</A><DD>
|
|
<DT id="233"><A HREF="#lbAV">COLOPHON</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:03 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|