diff options
Diffstat (limited to 'src/libs/client')
-rw-r--r-- | src/libs/client/Serializer.cpp | 5 |
1 files changed, 5 insertions, 0 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; |