mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
0adefbf152
The standard states that, when the # flag is used: > The result is converted to an "alternative form". [...] For x (or X) conversion, a nonzero result has 0x (or 0X) prefixed to it. - C standard, 7.23.6.1. The fprintf function cosmopolitan fails to use the correct alternative form (0X) when the X conversion specifier is used, instead using 0x, which is not capitalized. This patch fixes this, along with the several tests that test for the wrong behavior. |
||
---|---|---|
.. | ||
bits | ||
calls | ||
dns | ||
fmt | ||
intrin | ||
log | ||
mem | ||
nexgen32e | ||
release | ||
runtime | ||
sock | ||
stdio | ||
str | ||
thread | ||
time | ||
tinymath | ||
x | ||
xed | ||
zipos | ||
test.mk |