gEDA-dev: Gerbv and strtod
Gabriel Paubert
paubert at iram.es
Thu May 3 18:29:21 EDT 2007
On Thu, May 03, 2007 at 09:41:04PM +0200, Uwe Bonnes wrote:
> Hallo,
>
> trying to run gerbv on a big panel assembled with a recent CADSOFT EAGLE
> (4.16) on Suse 10.2, gerbv 1.0.2 choked on the excellon files. Recent eagle
> excellon files include the tool setup, like
> %
> M48
> T01C0.0360
> Digging deaper, I noticed that strtod in read_double returned NULL. In the
> debugger strtod("0.0360",0) returned 0. Is there any known issue with
> strtod?
>
Are you by chance in a locale in which the decimal point is not "." but
something else like a comma "," for example, which happens to be
the decimal separator for german locale?
Simply put a call to setlocale(LC_NUMERIC, "C") before strtod
and see what happens.
Regards,
Gabriel
More information about the geda-dev
mailing list