[geocode-glib] test: Fix long/lat parsing in some locales



commit 0a287710c16fdeefd85c5e3535bc2827be8bcc16
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Nov 25 01:07:31 2012 +0100

    test: Fix long/lat parsing in some locales

 geocode-glib/test-gcglib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/geocode-glib/test-gcglib.c b/geocode-glib/test-gcglib.c
index 1851924..e4b9893 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -336,8 +336,8 @@ new_loc (void)
 	    params[1] == NULL ||
 	    *params[1] == '\0')
 		return NULL;
-	latitude = strtod (params[0], NULL);
-	longitude = strtod (params[1], NULL);
+	latitude = g_ascii_strtod (params[0], NULL);
+	longitude = g_ascii_strtod (params[1], NULL);
 	return geocode_location_new (latitude, longitude);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]