glib r7195 - in trunk: . glib
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7195 - in trunk: . glib
- Date: Wed, 16 Jul 2008 22:05:24 +0000 (UTC)
Author: matthiasc
Date: Wed Jul 16 22:05:24 2008
New Revision: 7195
URL: http://svn.gnome.org/viewvc/glib?rev=7195&view=rev
Log:
* glib/gstrfuncs.c (g_ascii_strtod): Document that this
function does accept localized infinities and nans. Reported
by Morten Welinder.
Modified:
trunk/ChangeLog
trunk/glib/gstrfuncs.c
Modified: trunk/glib/gstrfuncs.c
==============================================================================
--- trunk/glib/gstrfuncs.c (original)
+++ trunk/glib/gstrfuncs.c Wed Jul 16 22:05:24 2008
@@ -332,10 +332,12 @@
* 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]