summaryrefslogtreecommitdiffstats
path: root/src/libs/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-06-23 22:45:08 +0000
committerDavid Robillard <d@drobilla.net>2007-06-23 22:45:08 +0000
commit51918d8e3743d178bba2dbd788c8a5c3fc7cc3bc (patch)
treebb062ba7557f88da80d2e6427f5d67f077b7643b /src/libs/serialisation
parent4f3671892be72cdd39b1a9e76f7cd4d9962f40c0 (diff)
downloadingen-51918d8e3743d178bba2dbd788c8a5c3fc7cc3bc.tar.gz
ingen-51918d8e3743d178bba2dbd788c8a5c3fc7cc3bc.tar.bz2
ingen-51918d8e3743d178bba2dbd788c8a5c3fc7cc3bc.zip
Possible fix for serialisation in locales with , as decimal point.
git-svn-id: http://svn.drobilla.net/lad/ingen@540 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/serialisation')
-rw-r--r--src/libs/serialisation/Loader.cpp3
1 files changed, 3 insertions, 0 deletions
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;