After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 115293 - Empty spin-buttons with MinGW
Empty spin-buttons with MinGW
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other other
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 117447 119782 (view as bug list)
Depends on:
Blocks: 110679
 
 
Reported: 2003-06-16 14:57 UTC by Ernst Lippe
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ernst Lippe 2003-06-16 14:57:40 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.
Comment 1 Owen Taylor 2003-08-07 16:53:19 UTC
*** Bug 117447 has been marked as a duplicate of this bug. ***
Comment 2 Owen Taylor 2003-08-07 16:56:03 UTC
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.
Comment 3 Matthias Clasen 2003-08-07 19:05:05 UTC
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.
Comment 4 Tor Lillqvist 2003-08-17 00:03:06 UTC
*** Bug 119782 has been marked as a duplicate of this bug. ***