Document that this function does accept localized infinities and nans.
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 16 Jul 2008 22:05:24 +0000 (22:05 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 16 Jul 2008 22:05:24 +0000 (22:05 +0000)
        * glib/gstrfuncs.c (g_ascii_strtod): Document that this
        function does accept localized infinities and nans. Reported
        by Morten Welinder.

svn path=/trunk/; revision=7195

ChangeLog
glib/gstrfuncs.c

index cf522ffcf3c050ef02cec7a4f065ed82bd03ac61..a64b42f717f7f43cb47ca4ed27719fd677a92c1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-07-16  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 406120 – g_ascii_strtod
+
+       * glib/gstrfuncs.c (g_ascii_strtod): Document that this
+       function does accept localized infinities and nans. Reported
+       by Morten Welinder.
+
 2008-07-16  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 482413 - get_contents_stdio -- overflow and memory corruption
index e9c9e318ff26bd302b809c73de7e58e97a59cef9..fcb09374013433c686c1c8306d334862744433cb 100644 (file)
@@ -332,10 +332,12 @@ g_strtod (const gchar *nptr,
  *           the last character used in the conversion.
  * 
  * Converts a string to a #gdouble value.
+ *
  * This function behaves like the standard strtod() function
- * does in the C locale. It does this without actually
- * changing the current locale, since that would not be
- * thread-safe.
+ * does in the C locale. It does this without actually changing 
+ * the current locale, since that would not be thread-safe. 
+ * A limitation of the implementation is that this function
+ * will still accept localized versions of infinities and NANs. 
  *
  * This function is typically used when reading configuration
  * files or other non-user input that should be locale independent.