cosmopolitan/test/libc/fmt
Gabriel Ravier 792b1c84c0
Fix padding+minus flag on numbers for printf-family functions ()
The C standard states, for conversions using the d, i, b, B, o, u, x or X conversion specifiers:
> The precision specifies the minimum number of digits to appear; if
> the value being converted can be represented in fewer digits, it is
> expanded with leading zeros.
- C standard, 7.23.6.1. The fprintf function

However, cosmopolitan currently suppresses the addition of leading
zeros when the minus flag is set. This is not reflected by anything
within the C standard, meaning that behavior is incorrect.

This patch fixes this.
2023-03-25 14:39:25 -04:00
..
atoi_test.c Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
basename_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
dirname_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
encodenf32_test.c Fold LIBC_RAND into LIBC_STDIO/TINYMATH/INTRIN 2022-08-11 12:32:00 -07:00
fmt_test.c Fix padding+minus flag on numbers for printf-family functions () 2023-03-25 14:39:25 -04:00
formatbinary64_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
formatflex64_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
formathex64_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
formatint64_test.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
formatint64thousands_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
formatoctal32_test.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
formatoctal64_test.c Polish redbean serialization 2022-04-29 06:10:10 -07:00
imaxdiv_test.c Add imaxdiv, wcscoll, getdtablesize () 2022-10-05 07:14:58 -07:00
itoa64radix16_test.c Change license 2020-12-27 17:18:44 -08:00
joinpaths_test.c Make improvements 2022-07-21 03:36:42 -07:00
lengthuint64_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
palandprintf_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
sizetol_test.c Make improvements 2022-08-15 15:20:36 -07:00
sleb128_test.c Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
sprintf_s.inc Further refine printf long double change () 2021-02-27 13:30:17 -08:00
sprintf_s_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
sscanf_test.c Do some string library work 2022-08-20 22:17:14 -07:00
strerror_r_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
stripexts_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
test.mk Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
timevaltofiletime_test.c Get more Python tests passing () 2021-08-16 15:26:31 -07:00
uleb64_test.c Add Compress() and Uncompress() to redbean 2022-05-16 16:49:20 -07:00
uleb128_test.c Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
zleb64_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00