|
Message-ID: <7bf9a30d-4ba8-1fe7-8c80-db99446db307@gmail.com> 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.