Skip to contentSkip to conversation

locale.5: Decimal points, thousands separators must be one character

PATCH In review Florian Weimer 2 participants 2 messages Oct 9, 2020 – Oct 10, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 locale.5: Decimal points, thousands separators must be one character

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".

---
 man5/locale.5 | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
man5/locale.5 +8 -8
index f6b63da9d..9789e0bb0 100644
@@ -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
Signature · 3 lines
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
#1 lore raw
Quoted 6 lines · Florian Weimer

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".

Thanks, Florian. Patch applied.

Cheers,

Michael

Quoted 43 lines
---
 man5/locale.5 | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
man5/locale.5 +8 -8
index f6b63da9d..9789e0bb0 100644
@@ -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
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/