[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PCB Gtk port
> When editing and saving it takes into account locale.
> When reading files it doesn't.
> The effect: if you have decimal separator other than '.' (dot) you can
> save but you cannot load what you saved.
>
> Am I right?
Most probably yes. I had once reverse problem in gerbv - '.' was saved but in
many locales sscanf("%f"...) was insisting on having ','.
Fixed by setlocale(LC_NUMERIC, "C" ) in the affected function (parse_pnp()).
Because of some GTK magic calling it at the beginning of main() did not work.
If this is not the proper solution, I would be delighted to hear what is.
Best regards,
--
Tomasz Motylewski
BFAD GmbH