From ea35bff04d7a96f44ea595951bb0c0dd54c8ee52 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 13 Mar 2016 01:03:26 +0000 Subject: Use the set locale for boost::lexical_cast to fix #824. --- src/lib/util.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib') diff --git a/src/lib/util.cc b/src/lib/util.cc index 81963e0aa..f434f358e 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -389,6 +389,11 @@ dcpomatic_setup_gettext_i18n (string lang) setlocale (LC_ALL, ""); textdomain ("libdcpomatic2"); + /* This sets up the locale to be used by lexical_cast (and probably other stuff); + used by e.g. the audio gain calculator dialogue where we lexical_cast floating + point values. + */ + std::locale::global (std::locale ("")); #if defined(DCPOMATIC_WINDOWS) || defined(DCPOMATIC_OSX) bindtextdomain ("libdcpomatic2", mo_path().string().c_str()); -- cgit v1.2.3