+2013-10-28 Carl Hetherington <cth@carlh.net>
+
+ * Fix failure to reload configuration on
+ some non-English locales.
+
2013-10-26 Carl Hetherington <cth@carlh.net>
* Version 1.23 released.
valgrind --tool="callgrind" build/src/tools/dcpomatic $*
elif [ "$1" == "--i18n" ]; then
shift
- LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 build/src/tools/dcpomatic "$*"
+ LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8 build/src/tools/dcpomatic "$*"
else
build/src/tools/dcpomatic $*
fi
#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");