From 32790cb16956bb43607b4a4c2bbdead979009c8b Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Tue, 31 Jan 2006 03:34:26 +0000 Subject: [PATCH] Do the Locale-two-step to fix graphs in non-C-locales. Bug#328773. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13055 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 6 ++++++ src/gnome-utils/gnc-html-graph-gog.c | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 01009b7ca0..bd660dfb5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-30 Joshua Sled + + * src/gnome-utils/gnc-html-graph-gog.c (read_doubles): Explicitly + enter the C locale before calling sscanf on doubles string-ified + by guile. Bug#328773. + 2006-01-30 Derek Atkins * src/business/business-core/gncInvoice.c: diff --git a/src/gnome-utils/gnc-html-graph-gog.c b/src/gnome-utils/gnc-html-graph-gog.c index 33b89d677d..fb28286453 100644 --- a/src/gnome-utils/gnc-html-graph-gog.c +++ b/src/gnome-utils/gnc-html-graph-gog.c @@ -28,6 +28,7 @@ #include #include +#include "gnc-ui-util.h" #include "gnc-html-graph-gog.h" #include "gnc-html.h" #include "gnc-engine.h" @@ -98,10 +99,17 @@ read_doubles(const char * string, int nvalues) int accum = 0; double * retval = g_new0(double, nvalues); - for (n=0; n