[Bug 267410] strfmon_l: Fix strfmon_l(3)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Oct 2022 02:24:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267410

            Bug ID: 267410
           Summary: strfmon_l: Fix strfmon_l(3)
           Product: Base System
           Version: CURRENT
          Hardware: Any
               URL: https://github.com/freebsd/freebsd-src/pull/620
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: standards
          Assignee: standards@FreeBSD.org
          Reporter: jlduran@gmail.com

Created attachment 237701
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237701&action=edit
MWE

Attached is a simple MWE that reproduces a few bugs in the current strfmon_l(3)
code.

I have created a GitHub pull request (#620), which attempts to fix them:
https://github.com/freebsd/freebsd-src/pull/620

% ./strfmon_l_mwe 
Expected: [ **1234,57 €] [ **1.234,57 EUR]
  Actual: [ €**1234.57 ] [ EUR**1234.57 ]

Expected: [ £**1234.57] [ GBP**1,234.57]
  Actual: [ £**1234.57 ] [ GBP**1234.57 ]

Posting it here fore visibility and tracking.

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