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 625776 - serialise doubles and floats always with a decimal dot
serialise doubles and floats always with a decimal dot
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.16
Other Linux
: Normal enhancement
: 1.16
Assigned To: Stefan Sauer (gstreamer, gtkdoc dev)
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-01 18:41 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2010-10-04 09:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Sauer (gstreamer, gtkdoc dev) 2010-08-01 18:41:22 UTC
http://cgit.freedesktop.org/gstreamer/common/commit/?id=1c3225c7cffafbcfdf711ed33c69e6e1f974745d

Make sure floats and double property values are output with a decimal dot
(and not e.g. a comma) irrespective of the current locale. g_ascii_formatd() is
used here instead of g_ascii_dtostr() because we want nice human-readable
numbers and do not need the exact same bit representation when deserialising.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2010-10-04 09:08:58 UTC
commit 280c2d0654be3f39bd357c1dee9919ef1c34be21
Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Mon Oct 4 12:08:47 2010 +0300

    gtkdoc-scangobj: serialise doubles and floats always with a decimal dot
    
    Make sure floats and double property values are output with a decimal dot (and
    not e.g. a comma) irrespective of the current locale. g_ascii_formatd() is used
    here instead of g_ascii_dtostr() because we want nice human-readable numbers and
    do not need the exact same bit representation when deserialising.
    
    Other parts of gtk-doc may need fixing as well to make sure to always
    deserialise floats and doubles in C locale.