* [PATCH] strfmon.3: rewrite the example
@ 2015-06-09 14:18 Marko Myllynen
[not found] ` <5576F5C0.7080208-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Marko Myllynen @ 2015-06-09 14:18 UTC (permalink / raw)
To: Michael Kerrisk (man-pages); +Cc: linux-man
Hi Michael,
I think the example is more accurate when we use the exact
locale names and also the Euro sign where appropriate.
---
man3/strfmon.3 | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/man3/strfmon.3 b/man3/strfmon.3
index 1fcfbf0..fe2a086 100644
--- a/man3/strfmon.3
+++ b/man3/strfmon.3
@@ -189,27 +189,28 @@ strfmon(buf, sizeof(buf), "[%^=*#6n] [%=*#6i]",
outputs
.in +4n
-[ fl **1234,57] [ NLG **1 234,57]
+[€ **1234,57] [EUR **1 234,57]
.in
-in the Dutch locale (with fl for "florijnen" and NLG for Netherlands Guilders).
-The grouping character is very ugly because it takes as much space
-as a digit, while it should not take more than half that,
-and will no doubt cause confusion.
-Surprisingly, the "fl" is preceded and followed by a space,
-and "NLG" is preceded by one and followed by two spaces.
-This may be a bug in the locale files.
-The Italian, Australian, Swiss,
-and Portuguese locales yield
+in the
+.I nl_NL
+locale.
+The
+.IR de_DE ,
+.IR de_CH ,
+.IR en_AU ,
+and
+.I en_GB
+locales yield
.in +4n
-[ L. **1235] [ ITL **1.235]
+[ **1234,57 €] [ **1.234,57 EUR]
.br
-[ $**1234.57] [ AUD **1,234.57]
+[ Fr. **1234.57] [ CHF **1'234.57]
.br
-[Fr. **1234,57] [CHF **1.234,57]
+[ $**1234.57] [ AUD**1,234.57]
.br
-[ **1234$57Esc] [ **1.234$57PTE ]
+[ £**1234.57] [ GBP**1,234.57]
.in
.SH SEE ALSO
.BR duplocale (3),
Thanks,
--
Marko Myllynen
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread[parent not found: <5576F5C0.7080208-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] strfmon.3: rewrite the example [not found] ` <5576F5C0.7080208-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2015-06-12 18:18 ` Michael Kerrisk (man-pages) 0 siblings, 0 replies; 2+ messages in thread From: Michael Kerrisk (man-pages) @ 2015-06-12 18:18 UTC (permalink / raw) To: myllynen-H+wXaHxf7aLQT0dZR+AlfA Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man On 06/09/2015 04:18 PM, Marko Myllynen wrote: > Hi Michael, > > I think the example is more accurate when we use the exact > locale names and also the Euro sign where appropriate. Thanks, Marko. Applied. Cheers, Michael > --- > man3/strfmon.3 | 29 +++++++++++++++-------------- > 1 files changed, 15 insertions(+), 14 deletions(-) > > diff --git a/man3/strfmon.3 b/man3/strfmon.3 > index 1fcfbf0..fe2a086 100644 > --- a/man3/strfmon.3 > +++ b/man3/strfmon.3 > @@ -189,27 +189,28 @@ strfmon(buf, sizeof(buf), "[%^=*#6n] [%=*#6i]", > outputs > .in +4n > > -[ fl **1234,57] [ NLG **1 234,57] > +[€ **1234,57] [EUR **1 234,57] > > .in > -in the Dutch locale (with fl for "florijnen" and NLG for Netherlands Guilders). > -The grouping character is very ugly because it takes as much space > -as a digit, while it should not take more than half that, > -and will no doubt cause confusion. > -Surprisingly, the "fl" is preceded and followed by a space, > -and "NLG" is preceded by one and followed by two spaces. > -This may be a bug in the locale files. > -The Italian, Australian, Swiss, > -and Portuguese locales yield > +in the > +.I nl_NL > +locale. > +The > +.IR de_DE , > +.IR de_CH , > +.IR en_AU , > +and > +.I en_GB > +locales yield > .in +4n > > -[ L. **1235] [ ITL **1.235] > +[ **1234,57 €] [ **1.234,57 EUR] > .br > -[ $**1234.57] [ AUD **1,234.57] > +[ Fr. **1234.57] [ CHF **1'234.57] > .br > -[Fr. **1234,57] [CHF **1.234,57] > +[ $**1234.57] [ AUD**1,234.57] > .br > -[ **1234$57Esc] [ **1.234$57PTE ] > +[ £**1234.57] [ GBP**1,234.57] > .in > .SH SEE ALSO > .BR duplocale (3), > > Thanks, > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-12 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-09 14:18 [PATCH] strfmon.3: rewrite the example Marko Myllynen
[not found] ` <5576F5C0.7080208-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-06-12 18:18 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).