diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-15 16:10:42 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-15 16:10:42 +0200 |
commit | 93ffece46502e46bf2a22c93ceccc87c0487515f (patch) | |
tree | 17c6af51be560dcb66158a43348c44017cfc0be9 /gtk2_ardour/main.cc | |
parent | 8c3551341c312180eba79551bbc2f29f2797bdca (diff) |
hotfix C++ locale (OSX, windows)
Diffstat (limited to 'gtk2_ardour/main.cc')
-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(); |