diff options
author | Ted Gould <ted@gould.cx> | 2012-04-18 16:19:13 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-04-18 16:19:13 -0500 |
commit | bb58a4eb0f358ab958ceaf9186350aabc6963d01 (patch) | |
tree | 30290b5278ff51d90b4afa2184ea0a37bb062333 | |
parent | 077263a4ccd22ffeeceecb5458215e853b479edd (diff) | |
download | ayatana-indicator-datetime-bb58a4eb0f358ab958ceaf9186350aabc6963d01.tar.gz ayatana-indicator-datetime-bb58a4eb0f358ab958ceaf9186350aabc6963d01.tar.bz2 ayatana-indicator-datetime-bb58a4eb0f358ab958ceaf9186350aabc6963d01.zip |
Make it so that we parse the long and lat in a locale independent way
-rw-r--r-- | src/datetime-prefs-locations.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |