On Sun, May 3, 2009 at 8:20 PM, Jocelyn Jaubert
<jocelyn.jaub...@gmail.com>wrote:

> 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 :)


You are right. But it also says: "This function should seldomly be used. The
normal situation when reading numbers not for human consumption is to use
g_ascii_strtod()<http://library.gnome.org/devel/glib/stable/glib-String-Utility-Functions.html#g-ascii-strtod>
."
That's why I'd thought it would be nicer to change it. But this is not
necessary.

Tal
------------------------------------------------------------------------------
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/

Reply via email to