locale.1: Various minor fixes after review by Mike Frysinger

Reviewed-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-03-11 12:33:43 +01:00
parent 73155a2975
commit 4edd4149dd
1 changed files with 12 additions and 8 deletions

View File

@ -86,7 +86,7 @@ the values of all keywords in that category are displayed.
.PP .PP
When arguments are supplied, the following options are meaningful: When arguments are supplied, the following options are meaningful:
.TP .TP
.BR "\-c" ", " \-\-category\-name" .BR \-c ", " \-\-category\-name
For a category name argument, For a category name argument,
write the name of the locale category write the name of the locale category
on a separate line preceding the list of keyword values for that category. on a separate line preceding the list of keyword values for that category.
@ -100,29 +100,28 @@ It can be combined with the
.B \-k .B \-k
option. option.
.TP .TP
.BR "\-k" ", " "\-\-keyword\-name" .BR \-k ", " \-\-keyword\-name
For each keyword whose value is being displayed, For each keyword whose value is being displayed,
include also the name of that keyword, include also the name of that keyword,
so that the output has the format: so that the output has the format:
\fIkeyword\fP="\fIvalue\fP" \fIkeyword\fP="\fIvalue\fP"
.PP .PP
The The
.I locale .I locale
command also knows about the following options: command also knows about the following options:
.TP .TP
.BR "\-v" ", " "\-\-verbose" .BR \-v ", " \-\-verbose
Display additional information for some command-line option and argument Display additional information for some command-line option and argument
combinations. combinations.
.TP .TP
.BR "\-?" ", " "\-\-help" .BR \-? ", " \-\-help
Display a summary of command-line options and arguments and exit. Display a summary of command-line options and arguments and exit.
.TP .TP
.BR "\-\-usage" .BR \-\-usage
Display a short usage message and exit. Display a short usage message and exit.
.TP .TP
.BR "\-V" ", " "\-\-version" .BR \-V ", " \-\-version
Display the program version and exit. Display the program version and exit.
.SH CONFORMING TO .SH CONFORMING TO
POSIX.1-2001, POSIX.1-2008 POSIX.1-2001, POSIX.1-2008
@ -142,20 +141,25 @@ LC_ADDRESS="en_US.UTF\-8"
LC_TELEPHONE="en_US.UTF\-8" LC_TELEPHONE="en_US.UTF\-8"
LC_MEASUREMENT="en_US.UTF\-8" LC_MEASUREMENT="en_US.UTF\-8"
LC_IDENTIFICATION="en_US.UTF\-8" LC_IDENTIFICATION="en_US.UTF\-8"
LC_ALL=en_US.UTF\-8 LC_ALL=
$ \fBlocale date_fmt\fP $ \fBlocale date_fmt\fP
%a %b %e %H:%M:%S %Z %Y %a %b %e %H:%M:%S %Z %Y
$ \fBlocale \-k date_fmt\fP $ \fBlocale \-k date_fmt\fP
date_fmt="%a %b %e %H:%M:%S %Z %Y" date_fmt="%a %b %e %H:%M:%S %Z %Y"
$ \fBlocale \-ck date_fmt\fP $ \fBlocale \-ck date_fmt\fP
LC_TIME LC_TIME
date_fmt="%a %b %e %H:%M:%S %Z %Y" date_fmt="%a %b %e %H:%M:%S %Z %Y"
$ \fBlocale LC_MESSAGES\fP $ \fBlocale LC_MESSAGES\fP
^[yY].* ^[yY].*
^[nN].* ^[nN].*
Yes Yes
No No
UTF\-8 UTF\-8
$ \fBlocale \-k LC_MESSAGES\fP $ \fBlocale \-k LC_MESSAGES\fP
yesexpr="^[yY].*" yesexpr="^[yY].*"
noexpr="^[nN].*" noexpr="^[nN].*"