Posix(?) on numeric entry
- From: antongiulio <antongiulio email it>
- To: gtk-list gnome org
- Subject: Posix(?) on numeric entry
- Date: Tue, 15 Feb 2005 10:37:48 +0100
Hi,
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
Giulio
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
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]