Page MenuHomeFreeBSD

locale: monetdef: Add a callback to intsepbyspace
Needs ReviewPublic

Authored by jlduran on Mon, Dec 8, 7:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 30, 7:36 PM
Unknown Object (File)
Sat, Dec 20, 1:05 AM
Unknown Object (File)
Wed, Dec 17, 10:33 PM
Unknown Object (File)
Wed, Dec 17, 6:45 PM
Unknown Object (File)
Tue, Dec 16, 7:59 AM
Unknown Object (File)
Tue, Dec 16, 7:49 AM
Unknown Object (File)
Sun, Dec 14, 6:48 AM
Unknown Object (File)
Sat, Dec 13, 10:11 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Add a callback to int_{n,p}_sep_by_space to insert a space between the
international currency symbol and the monetary quantity for en_IE and
en_US locales, matching common documentation practices[1] and the Open
Group's strfmon[2] manual page. This aligns the output with typical
formatting conventions where a space is placed between the international
currency symbol and the amount for these locales.

The change affects only the formatting behavior of strfmon(3), as it is
the only function currently using int_{n,p}_sep_by_space.

[1]: https://style-guide.europa.eu/en/content/-/isg/topic?identifier=7.3.3-rules-for-expressing-monetary-units
[2]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/strfmon.html

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69143
Build 66026: arc lint + arc unit

Event Timeline

NOTE: In the final commit the definitions in the frozen locales will be updated as well. Due to issues with different file encodings, I was not able to upload the full patch.