History log of /haiku/src/system/libroot/posix/glibc/stdio-common/printf_fp.c
Revision Date Author Comments
# ae7395c8 30-Jun-2022 Trung Nguyen <trungnt282910@gmail.com>

libs/posix: Fix printf handling for %F format.

Before this patch, calling functions in the `printf` family and
passing %F in the format string, such as

printf("%6.2F\n", 580.0f);

would incorrectly output numbers in the exponential format:

5.8D+02

This patch fixes the output for this situation:

580.00

and fixes the behavior for programs that use %F, such as
several tests for the `fish` shell.

Change-Id: I124a5a7b93b5f551fa190501a5778726812d347c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5424
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 9e419c30 18-Jan-2020 Augustin Cavalier <waddlesplash@gmail.com>

libroot: Avoid glibc-internal math function usage in printf.

There's no reason for this, and we'd like to not export
these functions anymore (under non-x86/x86_64), so just use
the public macros.


# d1c7f766 11-Jan-2014 Jonathan Schleifer <js@webkeks.org>

glibc: Remove a ++ that was accidentally added.

Thanks to PulkoMandy for noticing!

Work towards bug #10396


# 38fee4c3 10-Jan-2014 Jonathan Schleifer <js@webkeks.org>

glibc: Remove nested function.

Nested functions are a (again, broken) GNU extension which is not
supported by Clang. It has been replaced by a bunch of gotos and a
variable that works as a return address.


# 5af32e75 13-Apr-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/kernel to src/system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d1c7f766fde371e1b4a7e188e3889f26ebdd04a8 11-Jan-2014 Jonathan Schleifer <js@webkeks.org>

glibc: Remove a ++ that was accidentally added.

Thanks to PulkoMandy for noticing!

Work towards bug #10396


# 38fee4c388a48be555e5866cba404b0bb6fad20e 10-Jan-2014 Jonathan Schleifer <js@webkeks.org>

glibc: Remove nested function.

Nested functions are a (again, broken) GNU extension which is not
supported by Clang. It has been replaced by a bunch of gotos and a
variable that works as a return address.


# 5af32e752606778be5dd7379f319fe43cb3f6b8c 13-Apr-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/kernel to src/system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96