[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: [Patch] Gerbx: Use LC_NUMERIC for drill.c too( was:Gerbv ans strtod)
On Wed, May 16, 2007 at 08:00:46PM +0200, Uwe Bonnes wrote:
> Hallo,
>
> appended patch defined LC_NUMERIC also for gerbv.c.
>
> This makes the warnings
> > Tool is wrong size: 0
> > Warning: Tool 01 used without being defined
>
Note that all programs that already link with glib (this includes all gtk
programs) do not need to reinvent the wheel: they can use glib's
g_ascii_strtod().
The downside is that you have to go through all the code and change all
conversions between floating-point and text that are affected (not the
user interface ones). Besides that, it can become more complex for
things like writing to file, since there is no locale independent
variant of fprintf.
Gabriel
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev