Re: code work wrong when i put it in gtk+ application

2009-11-12 Thread Carlos Pereira
As Tor already said, you can disable locale settings (and then everything will work as 15.00 in every country, not 15,00) with gtk_disable_setlocale (), before starting gtk: gtk_disable_setlocale (); gtk_init (argc, argv); Carlos After i updated my system my previously working gtk+

Re: code work wrong when i put it in gtk+ application

2009-11-12 Thread Tadej Borovšak
Hello. What about using g_ascii_* family of functions to do C locale compliant conversion. g_ascii_strtod seems to be the function you could use. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com ___

code work wrong when i put it in gtk+ application

2009-11-11 Thread cet cet
After i updated my system my previously working gtk+ application start to print wrong result.The problem is atof() i used in the program.The code is working as expected in a standart c console version.(Program reads some datas from file and make some calculations)The code i used is; suppose

Re: code work wrong when i put it in gtk+ application

2009-11-11 Thread Chris Vine
On Wed, 11 Nov 2009 16:35:23 -0800 (PST) cet cet xni...@yahoo.com wrote: After i updated my system my previously working gtk+ application start to print wrong result.The problem is atof() i used in the program.The code is working as expected in a standart c console version.(Program reads some

Re: code work wrong when i put it in gtk+ application

2009-11-11 Thread Tor Lillqvist
The radix is locale dependent.  You will need to set a C locale. To be more specific, call setlocale(LC_NUMERIC, C) GTK+ calls setlocale(LC_ALL, ) for you automatically in gtk_init() unless you call gtk_disable_setlocale() first. Read your C library's documentation to learn about setlocale().