Make g_ascii_strtod behave as documented
authorMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2011 18:57:47 +0000 (14:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2011 19:00:14 +0000 (15:00 -0400)
commite52437982c4dd1c88459f3eed0d8ad1dc167c0eb
tree8fac2c002c251ed52473f7bc938924e7f01e7fe8
parent848df03e16e190eddf1ee63733d85f687b65bdf9
Make g_ascii_strtod behave as documented

The docs explicitly state that we reset errno, so lets do that,
even if we just wrap strtod_l. Also move the argument check
out of the ifdef.

https://bugzilla.gnome.org/show_bug.cgi?id=662398
glib/gstrfuncs.c