Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 11 Sep 2019 23:09:03 -0700
From: Brion Vibber <bvibber@...imedia.org>
To: musl@...ts.openwall.com
Subject: [PATCH] Allow %lf in wprintf

On the emscripten mailing list we got a report that using %lf as a format
specifier for doubles worked in printf but not wprintf, which I was able to
confirm looking at the musl implementation we're using.

It looks like support for %lf in printf was added in 2012 in
commit cc3a44666, but didn't get copied to the wprintf implementation so
they're just out of sync. I've attached a small patch which copies the same
fix to the wprintf side.

Please let me know if there's any test cases I should add to, or anything
else. Thanks!

-- brion

Content of type "text/html" skipped

Download attachment "0001-Fix-lf-in-wprintf.patch" of type "application/octet-stream" (974 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.