[goffice] Math: fix test for broken C library.



commit b0e214b419600f0da1a1ac1db12c6ec911a1531a
Author: Morten Welinder <terra gnome org>
Date:   Fri May 30 14:07:34 2014 -0400

    Math: fix test for broken C library.

 ChangeLog              |    5 +++++
 NEWS                   |    5 +++++
 goffice/math/go-math.c |    2 +-
 3 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d02f9d9..0acc5f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-30  Morten Welinder  <terra gnome org>
+
+       * goffice/math/go-math.c (_go_math_init): Ensure test is locale
+       independent.
+
 2014-05-29  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/Makefile.am: new GoUnit objects.
diff --git a/NEWS b/NEWS
index 7c8cb4d..a8ecbb9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,12 @@
 goffice 0.10.17:
 
+<<<<<<< Updated upstream
 Jean:
        * Add control for 3D plots axes lengths. [#694746]
+=======
+Morten:
+       * Fix test for buggy C library.
+>>>>>>> Stashed changes
 
 --------------------------------------------------------------------------
 goffice 0.10.16:
diff --git a/goffice/math/go-math.c b/goffice/math/go-math.c
index d568e1a..fdb9a0d 100644
--- a/goffice/math/go-math.c
+++ b/goffice/math/go-math.c
@@ -178,7 +178,7 @@ _go_math_init (void)
 #endif
 
        {
-               double x = atof ("24985672148.49707");
+               double x = g_ascii_strtod ("24985672148.49707", NULL);
                double sx = sin (x);
                double ref = -0.55266506738426566413304;
                if (fabs (sx - ref) > 0.01) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]