diff options
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |