Page MenuHomeFreeBSD

strfmon: Add tests for Austin Group Defect 1199
ClosedPublic

Authored by jlduran on Wed, Nov 26, 2:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 15, 9:22 PM
Unknown Object (File)
Mon, Dec 15, 11:49 AM
Unknown Object (File)
Mon, Dec 8, 7:57 AM
Unknown Object (File)
Mon, Dec 8, 7:55 AM
Unknown Object (File)
Wed, Dec 3, 9:56 AM
Unknown Object (File)
Tue, Dec 2, 9:55 PM
Unknown Object (File)
Mon, Dec 1, 9:47 PM
Unknown Object (File)
Sun, Nov 30, 1:48 PM
Subscribers

Details

Summary

Add tests for The Open Group Base Specifications Issue 8[1], Austin
Group Defect 1199[2].

Items marked with XXX represent an invalid output. These items will be
fixed in subsequent commits.

Notice that an existing test is now considered invalid.

Our locale definitions do not include int_p_sep_by_space nor
int_n_sep_by_space[3]. Those will be addressed in a subsequent commit.
However, the CLDR project defines them as "0", which causes the output
to appear as "USD123.45". If our locale definitions were to set the
international {n,p}_sep_by_space to "1", the output would display as the
expected "USD 123.45".

While here, use the SPDX license identifier and add my name to the
file.

[1]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/strfmon.html
[2]: https://www.austingroupbugs.net/view.php?id=1199
[3]: https://unicode-org.atlassian.net/browse/CLDR-237

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Would you add a link to the actual defect page? Is it public?

lib/libc/tests/stdlib/strfmon_test.c
15

Should be ordered alphabetically

jlduran marked an inline comment as done.

Address style(9) suggestions:

  • Sort includes
This revision is now accepted and ready to land.Wed, Nov 26, 5:05 PM