From ba7563a4cbe59e18262090d6fdf44b9a146affe3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 16 Jul 2008 22:05:24 +0000 Subject: [PATCH] Document that this function does accept localized infinities and nans. * 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 | 8 ++++++++ glib/gstrfuncs.c | 8 +++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index cf522ff..a64b42f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2008-07-16 Matthias Clasen + 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 + Bug 482413 - get_contents_stdio -- overflow and memory corruption * glib/gfileutils.c (get_contents_stdio): Detect overflow and diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index e9c9e31..fcb0937 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -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. -- 2.7.4