mirror of https://github.com/mkerrisk/man-pages
setlocale.3: Simply locale category listing and add GNU-specific locale categories
Some information that was here will move to locale(7). Reported-by: Marko Myllynen <myllynen@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
e0396d76b2
commit
348aab3724
|
@ -50,29 +50,37 @@ the program's current locale is modified according to the arguments.
|
||||||
The argument
|
The argument
|
||||||
.I category
|
.I category
|
||||||
determines which parts of the program's current locale should be modified.
|
determines which parts of the program's current locale should be modified.
|
||||||
.TP
|
.TS
|
||||||
.B LC_ALL
|
lB lB
|
||||||
for all of the locale.
|
lB l.
|
||||||
.TP
|
Category Governs
|
||||||
.B LC_COLLATE
|
LC_ALL All of the locale
|
||||||
for regular expression matching (it determines the meaning
|
LC_ADDRESS T{
|
||||||
of range expressions and equivalence classes) and string collation.
|
Formatting of addresses and
|
||||||
.TP
|
.br
|
||||||
.B LC_CTYPE
|
geography-related items (*)
|
||||||
for regular expression matching, character classification, conversion,
|
T}
|
||||||
case-sensitive comparison, and wide character functions.
|
LC_COLLATE String collation
|
||||||
.TP
|
LC_CTYPE Character classification
|
||||||
.B LC_MESSAGES
|
LC_IDENTIFICATION Metadata describing the locale (*)
|
||||||
for localizable natural-language messages.
|
LC_MEASUREMENT T{
|
||||||
.TP
|
Settings related to measurements
|
||||||
.B LC_MONETARY
|
.br
|
||||||
for monetary formatting.
|
(metric versus US customary) (*)
|
||||||
.TP
|
T}
|
||||||
.B LC_NUMERIC
|
LC_MESSAGES Localizable natural-language messages
|
||||||
for number formatting (such as the decimal point and the thousands separator).
|
LC_MONETARY Formatting of monetary values
|
||||||
.TP
|
LC_NAME Formatting of salutations for persons (*)
|
||||||
.B LC_TIME
|
LC_NUMERIC Formatting of nonmonetary numeric values
|
||||||
for time and date formatting.
|
LC_PAPER Settings related to the standard paper size (*)
|
||||||
|
LC_TELEPHONE Formats to be used with telephone services (*)
|
||||||
|
LC_TIME Formatting of date and time values
|
||||||
|
.TE
|
||||||
|
.PP
|
||||||
|
The categories marked with an asterisk in the above table
|
||||||
|
are GNU extensions.
|
||||||
|
For further information on these locale categories, see
|
||||||
|
.BR locale (7).
|
||||||
.PP
|
.PP
|
||||||
The argument
|
The argument
|
||||||
.I locale
|
.I locale
|
||||||
|
@ -96,12 +104,7 @@ the environment variable
|
||||||
.B LC_ALL
|
.B LC_ALL
|
||||||
is inspected,
|
is inspected,
|
||||||
next the environment variable with the same name as the category
|
next the environment variable with the same name as the category
|
||||||
.RB ( LC_COLLATE ,
|
(see the table above),
|
||||||
.BR LC_CTYPE ,
|
|
||||||
.BR LC_MESSAGES ,
|
|
||||||
.BR LC_MONETARY ,
|
|
||||||
.BR LC_NUMERIC ,
|
|
||||||
.BR LC_TIME )
|
|
||||||
and finally the environment variable
|
and finally the environment variable
|
||||||
.BR LANG .
|
.BR LANG .
|
||||||
The first existing environment variable is used.
|
The first existing environment variable is used.
|
||||||
|
|
Loading…
Reference in New Issue