mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
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. |
||
---|---|---|
.. | ||
atoi_test.c | ||
basename_test.c | ||
dirname_test.c | ||
encodenf32_test.c | ||
fmt_test.c | ||
formatbinary64_test.c | ||
formatflex64_test.c | ||
formathex64_test.c | ||
formatint64_test.c | ||
formatint64thousands_test.c | ||
formatoctal32_test.c | ||
formatoctal64_test.c | ||
imaxdiv_test.c | ||
itoa64radix16_test.c | ||
joinpaths_test.c | ||
lengthuint64_test.c | ||
palandprintf_test.c | ||
sizetol_test.c | ||
sleb128_test.c | ||
sprintf_s.inc | ||
sprintf_s_test.c | ||
sscanf_test.c | ||
strerror_r_test.c | ||
stripexts_test.c | ||
test.mk | ||
timevaltofiletime_test.c | ||
uleb64_test.c | ||
uleb128_test.c | ||
zleb64_test.c |