From: Marko Myllynen <myllynen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "Michael Kerrisk (man-pages)"
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-man <linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH] strfmon.3: rewrite the example
Date: Tue, 09 Jun 2015 17:18:40 +0300 [thread overview]
Message-ID: <5576F5C0.7080208@redhat.com> (raw)
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
next reply other threads:[~2015-06-09 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-09 14:18 Marko Myllynen [this message]
[not found] ` <5576F5C0.7080208-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-06-12 18:18 ` [PATCH] strfmon.3: rewrite the example Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5576F5C0.7080208@redhat.com \
--to=myllynen-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.