[PATCH] stdio: make scanf(%f) eat the same number of characters as strtod() would

Miklós Máté mtmkls@gmail.com
Wed Jan 1 22:52:40 GMT 2025


According to the spec the %f conversion specifier (and its synonyms) must
behave exactly as strtod(). This behavior matches FreeBSD libc. On MSVC
(with Godbolt) the "5e-" test fails miserably.

Fixed the relevant unit tests.

BTW the unit tests in this directory are a complete mess.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-stdio-make-scanf-f-eat-the-same-number-of-characters.patch
Type: text/x-patch
Size: 4233 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250101/a95f6c0c/attachment.bin>


More information about the Libc-alpha mailing list