From b5d4168adfb426f45108ac2bf7c8b17b126b07a1 Mon Sep 17 00:00:00 2001 From: Marko Myllynen Date: Thu, 22 May 2014 18:16:15 +0300 Subject: [PATCH] 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 --- man5/locale.5 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man5/locale.5 b/man5/locale.5 index b374b8f77..54f47ff60 100644 --- a/man5/locale.5 +++ b/man5/locale.5 @@ -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.