From 93ffece46502e46bf2a22c93ceccc87c0487515f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 15 Jul 2016 16:10:42 +0200 Subject: [PATCH] hotfix C++ locale (OSX, windows) --- gtk2_ardour/main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 33e30c2c15..a123631a54 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -298,7 +298,11 @@ int main (int argc, char *argv[]) #ifdef ENABLE_NLS /* initialize C and C++ locales to user preference */ setlocale (LC_ALL, ""); - std::locale::global (std::locale (setlocale (LC_ALL, 0))); + try { + std::locale::global (std::locale (setlocale (LC_ALL, 0))); + } catch (...) { + std::cerr << "Cannot set C++ locale\n"; + } #endif console_madness_begin();