[Bug 267282] [PATCH] strfmon: Attempt to fix some strfmon(3) bugs
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 267282] strfmon: Attempt to fix some strfmon(3) bugs"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Oct 2022 21:52:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267282
--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=6da51e19e347c13e133bcba68cc6100c16320a01
commit 6da51e19e347c13e133bcba68cc6100c16320a01
Author: Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2022-10-21 16:13:27 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-10-25 21:40:17 +0000
strfmon: Trim the SPACE from international currency symbol
The international currency symbol (int_curr_symbol) has a mandatory
SPACE character as the last character.
Trim this space after reading it, otherwise this extra space will always
be printed when displaying the int_curr_symbol.
Fixes the output when the international currency format is selected
(%i).
Locale Format Before After
en_US.UTF-8 [%i] [USD 123.45] [USD123.45]
fr_FR.UTF-8 [%i] [123,45 EUR ] [123,45 EUR]
Note that the en_US.UTF-8 locale states that no space should be printed
between the currency symbol and the value (sep_by_space = 0).
Reviewed by: kib
PR: 267282
Github PR: #619
MFC after: 1 week
lib/libc/stdlib/strfmon.c | 4 +++-
lib/libc/tests/stdlib/strfmon_test.c | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.