GNOME Bugzilla – Bug 115293
Empty spin-buttons with MinGW
Last modified: 2011-02-04 16:12:02 UTC
The MinGW C library does not support other locales than the "C" locale. The spin-button use g_strdup_printf to format the current value. When spin-button->numeric is TRUE and the current locale uses something different from "." for the decimal point, the entry field in the spin-button remains blank when the output from g_strdup_contains a decimal point.
*** Bug 117447 has been marked as a duplicate of this bug. ***
Changing strtod() to g_strtod() gtk_spin_button_default_input should make this work and probably is a good idea in any case ... g_strtod() first tries strtod(), and then if that fails, tries g_ascii_strtod() which always expects '.' to be the separator.
I've done this in both branches now. I'm going to close this bug, although I can't test the fix. Please reopen if the problem still occurs.
*** Bug 119782 has been marked as a duplicate of this bug. ***