summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libs/client/Serializer.cpp5
-rw-r--r--src/libs/engine/Tree.h12
-rw-r--r--src/libs/serialisation/Loader.cpp3
3 files changed, 11 insertions, 9 deletions
diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp
index 4a746ae1..92b0ad41 100644
--- a/src/libs/client/Serializer.cpp
+++ b/src/libs/client/Serializer.cpp
@@ -27,6 +27,7 @@
#include <cstdlib> // atof
#include <boost/optional/optional.hpp>
#include <cstring>
+#include <locale.h>
#include <raul/RDFWorld.h>
#include <raul/RDFModel.h>
#include <raul/RDFNode.h>
@@ -64,6 +65,8 @@ Serializer::Serializer(Raul::RDF::World& world)
void
Serializer::start_to_filename(const string& filename)
{
+ setlocale(LC_NUMERIC, "C");
+
_base_uri = "file://" + filename;
_model = new RDF::Model(_world);
_mode = TO_FILE;
@@ -81,6 +84,8 @@ Serializer::start_to_filename(const string& filename)
void
Serializer::start_to_string()
{
+ setlocale(LC_NUMERIC, "C");
+
_base_uri = "";
_model = new RDF::Model(_world);
_mode = TO_STRING;
diff --git a/src/libs/engine/Tree.h b/src/libs/engine/Tree.h
index 2c89e55c..cba23776 100644
--- a/src/libs/engine/Tree.h
+++ b/src/libs/engine/Tree.h
@@ -15,8 +15,8 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef NODETREE_H
-#define NODETREE_H
+#ifndef TREE_H
+#define TREE_H
#include <string>
#include <cassert>
@@ -138,10 +138,4 @@ private:
};
-/* This needs to be done so the templates are defined and can get instantiated
- * automatically by the compilter.
- */
-//#include "TreeImplementation.h"
-
-
-#endif // NODETREE_H
+#endif // TREE_H
diff --git a/src/libs/serialisation/Loader.cpp b/src/libs/serialisation/Loader.cpp
index 157756b1..25747d8d 100644
--- a/src/libs/serialisation/Loader.cpp
+++ b/src/libs/serialisation/Loader.cpp
@@ -16,6 +16,7 @@
*/
#include <iostream>
+#include <locale.h>
#include <glibmm/ustring.h>
#include <raul/RDFModel.h>
#include <raul/RDFQuery.h>
@@ -45,6 +46,8 @@ Loader::load(SharedPtr<EngineInterface> engine,
Glib::ustring patch_uri,
map<string,Atom> data)
{
+ setlocale(LC_NUMERIC, "C");
+
// FIXME: this whole thing is a mess
std::map<Path, bool> created;