summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-28 12:17:08 +0000
committerCarl Hetherington <cth@carlh.net>2013-10-28 12:17:08 +0000
commit894f300034d560f2a38c1ec0b693cd463599ba53 (patch)
tree96d22cffa9c1e14f04c5e1c2ec6a01ef5af261d8 /src/lib
parentc565d34e9c687639dcf62b36828829b4b0ce3517 (diff)
Add missing LocaleGuard to prevent commas getting into config files.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/config.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index 0b1b99e22..0c6aed4a8 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -33,6 +33,7 @@
#include "sound_processor.h"
#include "colour_conversion.h"
#include "cinema.h"
+#include "util.h"
#include "i18n.h"
@@ -79,6 +80,8 @@ Config::Config ()
void
Config::read ()
{
+ LocaleGuard lg;
+
if (!boost::filesystem::exists (file (false))) {
read_old_metadata ();
return;
@@ -263,7 +266,7 @@ Config::instance ()
/* configuration load failed; never mind, just
stick with the default.
*/
- cerr << "dcpomatic: failed to load configuration (" << e.what() << "\n";
+ cerr << "dcpomatic: failed to load configuration (" << e.what() << ")\n";
} catch (...) {
cerr << "dcpomatic: failed to load configuration\n";
}
@@ -276,6 +279,8 @@ Config::instance ()
void
Config::write () const
{
+ LocaleGuard lg;
+
xmlpp::Document doc;
xmlpp::Element* root = doc.create_root_node ("Config");