Implement a C99-capable version of strtod() for Windows/MSVC
@fanc999
Submitted by Chun-wei Fan Link to original bug (#712225)
Description
Hi,
Bug 711047, comment 64:
From Dan's comments inHm... we don't g_ascii_strtod() to behave differently in MSC than with unix/mingw though... so maybe we need to implement support for hex strings and nan/inf by hand there (the same way we don't use the system sprintf() under MSC).
I'm not sure how much work that would take; if you want to get the tests passing now, feel free to just commit this patch for now, and file a bug to fix g_ascii_strtod() later.
This is a bug opened for fixing g_ascii_strtod() on Visual C++ (and quite possibly other C89 compilers) as strtod() does not support the use of NAN/+-INF/Hex strings for conversion, and it returns 0.0 instead of NAN (as on C99) when a NAN is input to it. This is meant to keep track of the work needed for implementing a C99-capable strtod() on C89 compilers for proper consumption for g_ascii_strtod().
With blessings, thank you!