locale.5: Clarify LC_TIME/am_pm and LC_NAME keywords usage

am_pm should be defined only if AM/PM convention is used to signal
applications they should not try to print them when using them in
unwanted.

Same for all LC_NAME keywords expect for name_fmt which should be
always defined.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Marko Myllynen 2014-05-22 18:16:15 +03:00 committed by Michael Kerrisk
parent d099bdc501
commit b5d4168adf
1 changed files with 6 additions and 2 deletions

View File

@ -777,7 +777,10 @@ The definition starts with the string
.B LC_NAME
in the first column.
The following keywords are allowed:
The following keywords are allowed but only
.IR name_fmt
should be always defined, others only if there is common convention to
use them in the language in question:
.TP
.I name_fmt
followed by a string containing field descriptors that define
@ -982,7 +985,8 @@ The appropriate representation of the
.B am
and
.B pm
strings.
strings. This should not be defined for locales not using AM/PM
convention.
.TP
.I d_t_fmt
The appropriate date and time format.