Date: Sun, 23 Oct 2022 03:49:26 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 267282] strfmon: Attempt to fix some strfmon(3) bugs Message-ID: <bug-267282-99@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267282-99>