Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] locale.5: Decimal points, thousands separators must be one character
@ 2020-10-09  8:40 Florian Weimer
  2020-10-10  9:08 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2020-10-09  8:40 UTC (permalink / raw)
  To: linux-man

This is implied by POSIX because it requires that these strings in the
locale definition file contain one symbol.  Currently, locale.5 does
not document the concept of symbols, this change glosses over that and
just uses the term "single-character string".

Signed-off-by: Florian Weimer <fweimer@redhat.com>

---
 man5/locale.5 | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/man5/locale.5 b/man5/locale.5
index f6b63da9d..9789e0bb0 100644
--- a/man5/locale.5
+++ b/man5/locale.5
@@ -693,12 +693,12 @@ separator.
 followed by the local currency symbol.
 .TP
 .I mon_decimal_point
-followed by the string that will be used as the decimal delimiter
-when formatting monetary quantities.
+followed by the single-character string that will be used as the
+decimal delimiter when formatting monetary quantities.
 .TP
 .I mon_thousands_sep
-followed by the string that will be used as a group separator
-when formatting monetary quantities.
+followed by the single-character string that will be used as a group
+separator when formatting monetary quantities.
 .TP
 .I mon_grouping
 followed by a sequence of integers separated by semicolons that
@@ -962,12 +962,12 @@ in the first column.
 The following keywords are allowed:
 .TP
 .I decimal_point
-followed by the string that will be used as the decimal delimiter
-when formatting numeric quantities.
+followed by the single-character string that will be used as the
+decimal delimiter when formatting numeric quantities.
 .TP
 .I thousands_sep
-followed by the string that will be used as a group separator
-when formatting numeric quantities.
+followed by the single-character string that will be used as a group
+separator when formatting numeric quantities.
 .TP
 .I grouping
 followed by a sequence of integers separated by semicolons

-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] locale.5: Decimal points, thousands separators must be one character
  2020-10-09  8:40 [PATCH] locale.5: Decimal points, thousands separators must be one character Florian Weimer
@ 2020-10-10  9:08 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-10-10  9:08 UTC (permalink / raw)
  To: Florian Weimer, linux-man; +Cc: mtk.manpages

On 10/9/20 10:40 AM, Florian Weimer wrote:
> This is implied by POSIX because it requires that these strings in the
> locale definition file contain one symbol.  Currently, locale.5 does
> not document the concept of symbols, this change glosses over that and
> just uses the term "single-character string".
> 
> Signed-off-by: Florian Weimer <fweimer@redhat.com>

Thanks, Florian. Patch applied.

Cheers,

Michael

> ---
>  man5/locale.5 | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/man5/locale.5 b/man5/locale.5
> index f6b63da9d..9789e0bb0 100644
> --- a/man5/locale.5
> +++ b/man5/locale.5
> @@ -693,12 +693,12 @@ separator.
>  followed by the local currency symbol.
>  .TP
>  .I mon_decimal_point
> -followed by the string that will be used as the decimal delimiter
> -when formatting monetary quantities.
> +followed by the single-character string that will be used as the
> +decimal delimiter when formatting monetary quantities.
>  .TP
>  .I mon_thousands_sep
> -followed by the string that will be used as a group separator
> -when formatting monetary quantities.
> +followed by the single-character string that will be used as a group
> +separator when formatting monetary quantities.
>  .TP
>  .I mon_grouping
>  followed by a sequence of integers separated by semicolons that
> @@ -962,12 +962,12 @@ in the first column.
>  The following keywords are allowed:
>  .TP
>  .I decimal_point
> -followed by the string that will be used as the decimal delimiter
> -when formatting numeric quantities.
> +followed by the single-character string that will be used as the
> +decimal delimiter when formatting numeric quantities.
>  .TP
>  .I thousands_sep
> -followed by the string that will be used as a group separator
> -when formatting numeric quantities.
> +followed by the single-character string that will be used as a group
> +separator when formatting numeric quantities.
>  .TP
>  .I grouping
>  followed by a sequence of integers separated by semicolons
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09  8:40 [PATCH] locale.5: Decimal points, thousands separators must be one character Florian Weimer
2020-10-10  9:08 ` Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git