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+
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
___
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
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
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().