From 51918d8e3743d178bba2dbd788c8a5c3fc7cc3bc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 23 Jun 2007 22:45:08 +0000 Subject: 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 --- src/libs/serialisation/Loader.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libs/serialisation') 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 +#include #include #include #include @@ -45,6 +46,8 @@ Loader::load(SharedPtr engine, Glib::ustring patch_uri, map data) { + setlocale(LC_NUMERIC, "C"); + // FIXME: this whole thing is a mess std::map created; -- cgit v1.2.1