Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2022 21:52:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 267282] [PATCH] strfmon: Attempt to fix some strfmon(3) bugs
Message-ID:  <bug-267282-99-7IiruYb5QO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267282-99@https.bugs.freebsd.org/bugzilla/>
References:  <bug-267282-99@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267282

--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D6da51e19e347c13e133bcba68cc6100c1=
6320a01

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 =3D 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(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267282-99-7IiruYb5QO>