On Sat, 2011-04-02 at 20:09 +0000, g...@gpleda.org wrote:
> 
> +       // force gerbv to output decimals as dots (not commas for other 
> locales)
> +       setlocale(LC_NUMERIC, "en_US");
> +       

en_US is not a good default for this, as it is a little biased ;)
 It might also not work if the user doesn't have en_US installed.

I think LC_NUMERIC, "C" should actually give the required effect, as the
portable C locale.

> +       // return to the default locale
> +       setlocale(LC_NUMERIC, "C");

I don't think that is what it does.. setlocale(LC_ALL, ""); should
restore to the default. Perhaps setlocale(LC_NUMERIC, ""); would also
work on just the numeric bits.

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)
Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to