From bb58a4eb0f358ab958ceaf9186350aabc6963d01 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 18 Apr 2012 16:19:13 -0500 Subject: Make it so that we parse the long and lat in a locale independent way --- src/datetime-prefs-locations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/datetime-prefs-locations.c') diff --git a/src/datetime-prefs-locations.c b/src/datetime-prefs-locations.c index c0452d0..9f5b42c 100644 --- a/src/datetime-prefs-locations.c +++ b/src/datetime-prefs-locations.c @@ -201,8 +201,8 @@ timezone_selected (GtkEntryCompletion * widget, GtkTreeModel * model, CC_TIMEZONE_COMPLETION_LONGITUDE, &strlon, -1); - if (strlat && *strlat) lat = atof(strlat); - if (strlon && *strlon) lon = atof(strlon); + if (strlat && *strlat) lat = g_ascii_strtod(strlat, NULL); + if (strlon && *strlon) lon = g_ascii_strtod(strlon, NULL); CcTimezoneMap * tzmap = CC_TIMEZONE_MAP (g_object_get_data (G_OBJECT (widget), "tzmap")); g_free (zone); -- cgit v1.2.3