#include "sound_processor.h"
#include "colour_conversion.h"
#include "cinema.h"
+#include "util.h"
#include "i18n.h"
void
Config::read ()
{
+ LocaleGuard lg;
+
if (!boost::filesystem::exists (file (false))) {
read_old_metadata ();
return;
/* 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";
}
void
Config::write () const
{
+ LocaleGuard lg;
+
xmlpp::Document doc;
xmlpp::Element* root = doc.create_root_node ("Config");