Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 6 Sep 2022 11:27:15 +0200
From: Gabriel Ravier <gabravier@...il.com>
To: musl@...ts.openwall.com
Subject: Bug report: fcvt seems dysfunctional

Executing something like `fcvt(0.01, 1, &decpt, &sign)` under musl 
results in a return value of "00", decpt == 1 and sign == 0.

glibc instead returns an empty string, decpt == -1 and sign == 0.

I believe glibc's behavior is the correct one as mandated by POSIX.2004 
because it specifies that the high-order digit shall be non-zero unless 
the value is 0, which is not the case here, meaning that musl cannot 
return a string containing '0' as the first character.

Powered by blists - more mailing lists

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