Re: bug#54785: for floating point, printf should use double like in C instead of long double

2022-04-11 Thread Chet Ramey
On 4/9/22 3:31 PM, Paul Eggert wrote: I suggest to parse the argument as a "long double" only if the "L" length modifier is provided, like in C. Thanks, good idea. I checked, and this also appears to be a POSIX conformance issue. POSIX  says that floating point operands "shall be evaluated a

Re: bug#54785: for floating point, printf should use double like in C instead of long double

2022-04-11 Thread Vincent Lefevre
On 2022-04-11 14:52:50 -0400, Chet Ramey wrote: > It sounds like there are three cases. > > 1. If the `L' modifier is supplied, as an extension (POSIX doesn't allow >length modifiers for the printf utility), use long double. This would >work in both default and posix modes. > > 2. In posi