Posix(?) on numeric entry


my app writes a "double" value on a gtk_entry with this code:

gchar *buffer;
double value = 2.59787;

buffer = g_strdup_printf("%g", value);
gtk_entry_set_text (GTK_ENTRY (value_entry), buffer);
g_free (buffer);


this value appears like: 2,59787 where ',' replaces a '.'
I suppose it's related to *_NL locale replaces posix locale.
How can I replace ',' with dot notation?

Thank you very much
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 Logos Finanziaria SPA. Società di credito ad erogazione diretta. Fino a 30.000 euro in 24 ore! Clicca e scopri come
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2909&d=15-2

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]