Hi, Le 29 avril 2009, Tal a écrit : > I have a simple question. Do the numbers in a gpspoint file (handled > by gpspoint.c) are locale aware, or do they always have "." for > decimal separator etc. ? > > In the later case, gpspoint.c should switch from using g_strtod() to > g_ascii_strtod().
According to the documentation on glib [1], g_strtod() uses the locale and also uses g_ascii_strtod() if the whole string was not parsed. So I think that we are safe here :) For writing in a file, then I think that it will be better to use the C locale - and a "." as a decimal separator. I'm not sure in fact... [1] = http://library.gnome.org/devel/glib/stable/glib-String-Utility-Functions.html#g-strtod Thanks, Jocelyn ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Viking-devel mailing list Viking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home page: http://viking.sf.net/