From nobody Sun Oct 23 03:49:26 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 4Mw42Z4sGcz4ftPF for ; Sun, 23 Oct 2022 03:49:26 +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 4Mw42Z2v2Nz3jBR for ; Sun, 23 Oct 2022 03:49:26 +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 4Mw42Z1z6pzmRH for ; Sun, 23 Oct 2022 03:49:26 +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 29N3nQQP030031 for ; Sun, 23 Oct 2022 03:49:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29N3nQP0030030 for standards@FreeBSD.org; Sun, 23 Oct 2022 03:49:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 267282] strfmon: Attempt to fix some strfmon(3) bugs Date: Sun, 23 Oct 2022 03:49:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jlduran@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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=1666496966; 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; bh=zqG2j179+liVHFEvnDCl4TaDyxgPnvSsKpU2NB2KpRA=; b=vbWANBRSmNNn+z0Stg9zZAG58IqDRLOqTj6JiA/vOpEhsGMCSdbe0gXbB490EMzHanw4zk dMGpPlh8lU0X3nqKRTOBXmfsh5GjC9g2e37j1it3Kmfxo0khtX04UQF5ysOrS2IN+TOb0j H2ATHpI6NxqnsNelU/hmV04fS+z3hOxG7+fa6o0/Y3N9aeVSiYTGnKQOgMTrTGnhU3ugya 1UlwuwbJCzafLXz1tn0AX/2vKhNWR2YYLSt2KqB2VQaaSXW1yckN2NXxldkQIJ7KHXBRVS B0ydgRnkUDWX61xEOnWDdymhqJ90HfagrxDOvDP2wPuU6SR2IlKHSH9CzItv7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666496966; a=rsa-sha256; cv=none; b=FrfbAatkz40MS//DKeGSOfCgL1Y/beuOHbq4kGpT5RzOiJgrqcGqvT8ujG44nLfBBLocLG PwkS9mwMpXnn8W6CIlFCj6Qr/XM3x+IqqqBoTG0a/9R2B2hNvdfQqEeLJaUNzvaHh+p1hZ hH2bj7gcN53rEhnQixwPwEps3HCbKCrHOrx9iAvFR8c4zIJQIlXgc3jRmfiH98uUbaTrzs OuoKXC3hmQTSsh4wrMHxUvOu55mfFWnZdLY+7sXn8nuMwpJaeiSwvsgaA8U1VlVWIVJNSL e0tRXQKkh2+L3TwGnzLtKLYJqLA6dnA0blUOL8SffEbJDNsrnYbayWEJmwrnTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267282 Bug ID: 267282 Summary: strfmon: Attempt to fix some strfmon(3) bugs Product: Base System Version: CURRENT Hardware: Any URL: https://github.com/freebsd/freebsd-src/pull/619 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: jlduran@gmail.com Created attachment 237546 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237546&action= =3Dedit MWE Attached is a simple MWE that reproduces a few bugs in the current strfmon(= 3) code. I have created a GitHub pull request (#619), which attempts to fix them: https://github.com/freebsd/freebsd-src/pull/619 $ ./strfmon_bugs Format: [%8n] [%8n] Expected: [ $123.45] [ $123.45] Actual: [ $123.45] [ $123.45] Format: [%(#5n] Expected: [ $ 123.45 ] [($ 123.45)] [ $ 3,456.78 ] Actual: [$ 123.45] [($ 123.45)] [$ 3,456.78] Format: [%!(#5n] Expected: [ 123.45 ] [( 123.45)] [ 3,456.78 ] Actual: [ 123.45] [( 123.45)] [ 3,456.78] Format: [%n] (n_cs_precedes =3D 0, n_sep_by_space =3D 2, n_sign_posn =3D = 1) Expected: [- 123.45$] Actual: [-123.45$] Format: [%i] Expected: [USD123.45] Actual: [USD 123.45] Format: [%i] Expected: [123,45 EUR] Actual: [123,45 EUR ] Posting it here fore visibility and tracking. --=20 You are receiving this mail because: You are the assignee for the bug.=