From nobody Tue Oct 25 21:52:12 2022 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mxlz06ZX6z4g6Dq for ; Tue, 25 Oct 2022 21:52:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mxlz01P3Hz3jl2 for ; Tue, 25 Oct 2022 21:52:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mxlz00DQrztRV for ; Tue, 25 Oct 2022 21:52:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 29PLqBF7073851 for ; Tue, 25 Oct 2022 21:52:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29PLqB0d073850 for standards@FreeBSD.org; Tue, 25 Oct 2022 21:52:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 267282] [PATCH] strfmon: Attempt to fix some strfmon(3) bugs Date: Tue, 25 Oct 2022 21:52:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666734732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jwdc5Ha6fc4+FQX40pk4HcprgtfCMXhO8CldhVtjX88=; b=bacwV1iDDlt2mvh+iqGnLT6/SnXYseZXs1izPffZmG7elu9kXSZC41dfVTDGFSCczHxFS5 Hh8l82+YQgBbWkGbX3Yi74IZJ4rT1M3QJI8EOcimjzSSTn5qpQtHJP4eAbdkJzapWz3axL K2Z1yoTzenCdgtBywHPCbBD3NKWmJ6T3Rla+9WgA74ykHGFcgrF0rNbPRdKBnIIW4MdzUe nAJf+83s90r3NiBTQIWhg4vogtDV3wW0OyyJMikZKGzfCJtk1iyevPKMsJgIl2QvOOgDlq +/q4qUuRDGS6gHNltwGRtGz/UyGd6i9Z2csOyLAASY2w1nB28xsGhEcuDyyNfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666734732; a=rsa-sha256; cv=none; b=pqP95svae0unPkU5GqCpSXIsWmZNJ3TtjPBuuKkGz/0yG+mU6Nx5DKyaxhXkq+uS4qkkBu zwbbh5bBnBW6P55mZuru3K9MZ+n16F2RoVClA9zZco/C83bqAwgvwnzoNSo9W9yT0CXKTx K3YDgg1A7sJD+Vz+YevRLh4Bi4g6Bax2rFN0EGQSDCM2rdcxYGxsTrcCSmr5H3SCFQfPko detw/YexO05G70MMByfs0xn+sMo4mNDjlpcHVFRLDjaLNXhE3xmX0zM7R8IqKtuj0PoM8f H61dTXXJFyH72D5Tg/vEq7g2pxdjqqty9bV88XaS2N+eSQTlIVOX4qwwo3Pciw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267282 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D750fe3e6a4619e040c7b0951775698b61= 290102e commit 750fe3e6a4619e040c7b0951775698b61290102e Author: Jose Luis Duran AuthorDate: 2022-10-18 02:24:03 +0000 Commit: Konstantin Belousov CommitDate: 2022-10-25 21:40:17 +0000 strfmon: Fix an edge case when sep_by_space is 2 Fix an edge case by printing the required space when, the currency symbol succeeds the value, a space separates the sign from the value and the sign position precedes the quantity and the currency symbol. In other words: n_cs_precedes =3D 0 n_sep_by_space =3D 2 n_sign_posn =3D 1 From The Open Group's localeconv[1]: > When {p,n,int_p,int_n}_sep_by_space is 2: > If the currency symbol and sign string are adjacent, a space separates > them; otherwise, a space separates the sign string from the value. Format Before After [%n] [-123.45=C2=A4] [- 123.45=C2=A4] [1]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/localeconv.html Obtained from: Darwin Reviewed by: kib PR: 267282 Github PR: #619 MFC after: 1 week lib/libc/stdlib/strfmon.c | 8 ++++++-- lib/libc/tests/stdlib/strfmon_test.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=