GNOME Bugzilla – Bug 625776
serialise doubles and floats always with a decimal dot
Last modified: 2010-10-04 09:08:58 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.
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.