summaryrefslogtreecommitdiffstats
path: root/man7/locale.7
diff options
context:
space:
mode:
Diffstat (limited to 'man7/locale.7')
-rw-r--r--man7/locale.7127
1 files changed, 64 insertions, 63 deletions
diff --git a/man7/locale.7 b/man7/locale.7
index cfd79b259..f3dd9d28a 100644
--- a/man7/locale.7
+++ b/man7/locale.7
@@ -29,16 +29,16 @@ declares data types, functions, and macros which are useful in this
task.
.P
The functions it declares are
-.BR setlocale (3)
+.MR setlocale 3
to set the current locale, and
-.BR localeconv (3)
+.MR localeconv 3
to get information about number formatting.
.P
There are different categories for locale information a program might
need; they are declared as macros.
Using them as the first argument
to the
-.BR setlocale (3)
+.MR setlocale 3
function, it is possible to set one of these to the desired locale:
.TP
.BR LC_ADDRESS " (GNU extension, since glibc 2.2)"
@@ -46,7 +46,7 @@ function, it is possible to set one of these to the desired locale:
Change settings that describe the formats (e.g., postal addresses)
used to describe locations and geography-related items.
Applications that need this information can use
-.BR nl_langinfo (3)
+.MR nl_langinfo 3
to retrieve nonstandard elements, such as
.B _NL_ADDRESS_COUNTRY_NAME
(country name, in the language of the locale)
@@ -64,9 +64,9 @@ sorting and regular expressions,
including character equivalence classes and
multicharacter collating elements.
This locale category changes the behavior of the functions
-.BR strcoll (3)
+.MR strcoll 3
and
-.BR strxfrm (3),
+.MR strxfrm 3 ,
which are used to compare strings in the local alphabet.
For example,
the German sharp s is sorted as "ss".
@@ -77,24 +77,24 @@ This category determines the interpretation of byte sequences as characters
(e.g., alphabetic or digit), and the behavior of character classes.
On glibc systems, this category also determines
the character transliteration rules for
-.BR iconv (1)
+.MR iconv 1
and
-.BR iconv (3).
+.MR iconv 3 .
It changes the behavior of the character handling and
classification functions, such as
-.BR isupper (3)
+.MR isupper 3
and
-.BR toupper (3),
+.MR toupper 3 ,
and the multibyte character functions such as
-.BR mblen (3)
+.MR mblen 3
or
-.BR wctomb (3).
+.MR wctomb 3 .
.TP
.BR LC_IDENTIFICATION " (GNU extension, since glibc 2.2)"
.\" See ISO/IEC Technical Report 14652
Change settings that relate to the metadata for the locale.
Applications that need this information can use
-.BR nl_langinfo (3)
+.MR nl_langinfo 3
to retrieve nonstandard elements, such as
.B _NL_IDENTIFICATION_TITLE
(title of this locale document)
@@ -110,21 +110,21 @@ and "USA".
This category determines the formatting used for
monetary-related numeric values.
This changes the information returned by
-.BR localeconv (3),
+.MR localeconv 3 ,
which describes the way numbers are usually printed, with details such
as decimal point versus decimal comma.
This information is internally
used by the function
-.BR strfmon (3).
+.MR strfmon 3 .
.TP
.B LC_MESSAGES
This category affects the language in which messages are displayed
and what an affirmative or negative answer looks like.
The GNU C library contains the
-.BR gettext (3),
-.BR ngettext (3),
+.MR gettext 3 ,
+.MR ngettext 3 ,
and
-.BR rpmatch (3)
+.MR rpmatch 3
functions to ease the use of this information.
The GNU gettext family of
functions also obey the environment variable
@@ -133,13 +133,13 @@ functions also obey the environment variable
if the category is set to a valid locale other than
.BR """C""" .
This category also affects the behavior of
-.BR catopen (3).
+.MR catopen 3 .
.TP
.BR LC_MEASUREMENT " (GNU extension, since glibc 2.2)"
Change the settings relating to the measurement system in the locale
(i.e., metric versus US customary units).
Applications can use
-.BR nl_langinfo (3)
+.MR nl_langinfo 3
to retrieve the nonstandard
.B _NL_MEASUREMENT_MEASUREMENT
element, which returns a pointer to a character
@@ -149,7 +149,7 @@ that has the value 1 (metric) or 2 (US customary units).
.\" See ISO/IEC Technical Report 14652
Change settings that describe the formats used to address persons.
Applications that need this information can use
-.BR nl_langinfo (3)
+.MR nl_langinfo 3
to retrieve nonstandard elements, such as
.B _NL_NAME_NAME_MR
(general salutation for men)
@@ -168,12 +168,12 @@ the thousands separator and the radix character
(a period in most English-speaking countries,
but a comma in many other regions).
It affects functions such as
-.BR printf (3),
-.BR scanf (3),
+.MR printf 3 ,
+.MR scanf 3 ,
and
-.BR strtod (3).
+.MR strtod 3 .
This information can also be read with the
-.BR localeconv (3)
+.MR localeconv 3
function.
.TP
.BR LC_PAPER " (GNU extension, since glibc 2.2)"
@@ -181,7 +181,7 @@ function.
Change the settings relating to the dimensions of the standard paper size
(e.g., US letter versus A4).
Applications that need the dimensions can obtain them by using
-.BR nl_langinfo (3)
+.MR nl_langinfo 3
to retrieve the nonstandard
.B _NL_PAPER_WIDTH
and
@@ -194,7 +194,7 @@ values specifying the dimensions in millimeters.
.\" See ISO/IEC Technical Report 14652
Change settings that describe the formats to be used with telephone services.
Applications that need this information can use
-.BR nl_langinfo (3)
+.MR nl_langinfo 3
to retrieve nonstandard elements, such as
.B _NL_TELEPHONE_INT_PREFIX
(international prefix used to call numbers in this locale),
@@ -207,15 +207,15 @@ This category governs the formatting used for date and time values.
For example, most of Europe uses a 24-hour clock versus the
12-hour clock used in the United States.
The setting of this category affects the behavior of functions such as
-.BR strftime (3)
+.MR strftime 3
and
-.BR strptime (3).
+.MR strptime 3 .
.TP
.B LC_ALL
All of the above.
.P
If the second argument to
-.BR setlocale (3)
+.MR setlocale 3
is an empty string,
.IR \[dq]\[dq] ,
for the default locale, it is determined using the following steps:
@@ -238,7 +238,7 @@ is used.
Values about local numeric formatting is made available in a
.I struct lconv
returned by the
-.BR localeconv (3)
+.MR localeconv 3
function, which has the following declaration:
.P
.in +4n
@@ -302,22 +302,23 @@ and with applications that must deal with multiple locales.
.P
The extensions take the form of new functions for creating and
manipulating locale objects
-.RB ( newlocale (3),
-.BR freelocale (3),
-.BR duplocale (3),
+\%(\c
+.MR newlocale 3 ,
+.MR freelocale 3 ,
+.MR duplocale 3 ,
and
-.BR uselocale (3))
+.MR uselocale 3 )
and various new library functions with the suffix "_l" (e.g.,
-.BR toupper_l (3))
+.MR toupper_l 3 )
that extend the traditional locale-dependent APIs (e.g.,
-.BR toupper (3))
+.MR toupper 3 )
to allow the specification of a locale object that should apply when
executing the function.
.SH ENVIRONMENT
The following environment variable is used by
-.BR newlocale (3)
+.MR newlocale 3
and
-.BR setlocale (3),
+.MR setlocale 3 ,
and thus affects all unprivileged localized programs:
.TP
.B LOCPATH
@@ -328,7 +329,7 @@ only the individual compiled locale data files from
.B LOCPATH
and the system default locale data path are used;
any available locale archives are not used (see
-.BR localedef (1)).
+.MR localedef 1 ).
The individual compiled locale data files are searched for under
subdirectories which depend on the currently used locale.
For example, when
@@ -354,26 +355,26 @@ POSIX.1-2001.
.\"
.\" The GNU gettext functions are specified in LI18NUX2000.
.SH SEE ALSO
-.BR iconv (1),
-.BR locale (1),
-.BR localedef (1),
-.BR catopen (3),
-.BR gettext (3),
-.BR iconv (3),
-.BR localeconv (3),
-.BR mbstowcs (3),
-.BR newlocale (3),
-.BR ngettext (3),
-.BR nl_langinfo (3),
-.BR rpmatch (3),
-.BR setlocale (3),
-.BR strcoll (3),
-.BR strfmon (3),
-.BR strftime (3),
-.BR strxfrm (3),
-.BR uselocale (3),
-.BR wcstombs (3),
-.BR locale (5),
-.BR charsets (7),
-.BR unicode (7),
-.BR utf\-8 (7)
+.MR iconv 1 ,
+.MR locale 1 ,
+.MR localedef 1 ,
+.MR catopen 3 ,
+.MR gettext 3 ,
+.MR iconv 3 ,
+.MR localeconv 3 ,
+.MR mbstowcs 3 ,
+.MR newlocale 3 ,
+.MR ngettext 3 ,
+.MR nl_langinfo 3 ,
+.MR rpmatch 3 ,
+.MR setlocale 3 ,
+.MR strcoll 3 ,
+.MR strfmon 3 ,
+.MR strftime 3 ,
+.MR strxfrm 3 ,
+.MR uselocale 3 ,
+.MR wcstombs 3 ,
+.MR locale 5 ,
+.MR charsets 7 ,
+.MR unicode 7 ,
+.MR utf\-8 7