[libgda/LIBGDA_5.0] Correction for bug #668411
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_5.0] Correction for bug #668411
- Date: Sun, 22 Jan 2012 22:40:32 +0000 (UTC)
commit 5e05955c70cf24b6bb3ba312c43bf7bcc61ef6db
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Jan 22 14:54:05 2012 +0100
Correction for bug #668411
libgda/gda-value.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index 8706d79..32ace66 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -39,6 +39,7 @@
#include <string.h>
#include <stdlib.h>
#include <time.h>
+#include <locale.h>
#include <libgda/gda-value.h>
#include <libgda/gda-blob-op.h>
#include <libgda/gda-util.h>
@@ -52,6 +53,7 @@
#define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
#endif
+extern gchar *gda_numeric_locale;
# ifdef GSEAL_ENABLE
/**
@@ -944,7 +946,9 @@ gda_numeric_set_double (GdaNumeric *numeric, gdouble number)
g_return_if_fail (numeric);
if (numeric->number)
g_free (numeric->number);
+ setlocale (LC_NUMERIC, "C");
numeric->number = g_strdup_printf ("%lf", number);
+ setlocale (LC_NUMERIC, gda_numeric_locale);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]