freebsd-src/lib/libc/tests
Jose Luis Duran 02a810d9b4
Some checks failed
Cross-build Kernel / amd64 ubuntu-20.04 (clang-12) (push) Has been cancelled
Cross-build Kernel / aarch64 ubuntu-20.04 (clang-12) (push) Has been cancelled
Cross-build Kernel / amd64 macos-latest (clang-13) (push) Has been cancelled
Cross-build Kernel / aarch64 macos-latest (clang-13) (push) Has been cancelled
Cross-build Kernel / amd64 ubuntu-22.04 (clang-14) (push) Has been cancelled
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-14) (push) Has been cancelled
strfmon: Fix negative sign handling for C locale
If the locale's positive_sign and negative_sign values would both be
returned by localeconv() as empty strings, strfmon() shall behave as if
the negative_sign value was the string "-".

This occurs with the C locale.  The implementation previously assigned
"0" to sign_posn (parentheses around the entire string); now it assigns
it to "1" (sign before the string) when it is undefined (CHAR_MAX).

Austin Group Defect 1199[1] is applied, changing the requirements for
the '+' and '(' flags.

[1]: https://www.austingroupbugs.net/view.php?id=1199

Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53913

(cherry picked from commit cf85e7034a)
2025-12-03 02:35:56 +00:00
..
c063 Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
db Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
gen wordexp(3): Handle ECHILD from waitpid 2025-08-12 23:20:24 +02:00
hash Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
iconv Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
inet Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
locale libc: use separate collate objects for C, POSIX, and C.UTF-8 2023-09-20 13:10:52 +00:00
net libc: Import OpenBSD's inet_net_{ntop,pton} 2025-10-25 05:41:37 +01:00
nss Fix lib/libc/nss/getgr_test with large numbers of groups 2025-01-20 15:41:52 -07:00
regex regex: mixed sets are misidentified as singletons 2024-09-25 15:42:28 -05:00
resolv Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
rpc Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
setjmp Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
ssp Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
stdio libc: fix access mode tests in fmemopen(3) 2024-10-29 15:12:17 -04:00
stdlib strfmon: Fix negative sign handling for C locale 2025-12-03 02:35:56 +00:00
stdtime strptime: Fix day-of-week calculation. 2024-12-16 10:38:57 +00:00
string Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
sys libc/sys: add errno test 2024-03-02 07:04:50 +02:00
termios Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
time Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
tls Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
tls_dso Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
ttyio Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile strptime: Fix day-of-week calculation. 2024-12-16 10:38:57 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.netbsd-tests Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00