https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91214
xiaoyi_wu at yahoo dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from xiaoyi_wu at yahoo dot com --- Never mind. False alarm. The text file has a not visible byte order mark of 0xefbbbf at the beginning, causing atof correctly returning 0.