On 06/18/2012 07:27 PM, John Spencer wrote: >> It's nice to be >> able to print a floating point value retrieved from a file, >> even if the file got messed up somehow, > ack.
That argues that printf() should be robust to _everything_ you throw at it, even bit patterns that are not produced by arithmetic. >> and to have that >> work reliably. I'm willing to have my programs be >> 0.00....01% slower if I can get that extra reliability. >> > maybe you, but not me. > and i definitely don't want 2 different printf implementations in my > binary because of this silly cornercase. You don't need 2 different printf implementations, just one that robustly handles all possible input. > who uses LD80 values in files anyway ? Who cares? POSIX requires od to support it, and that should be enough for libc to support it. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature