Remove wrong asserts
[ardour.git] / gtk2_ardour / main.cc
index ef35ac64b493811dbc0cdba3059bfe404ae4ffdd..a123631a54cc0f2b3219b919e67f2f8767a49e9e 100644 (file)
@@ -58,7 +58,7 @@
 #include "enums.h"
 #include "bundle_env.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 #ifdef PLATFORM_WINDOWS
 #include <fcntl.h> // Needed for '_fmode'
@@ -296,7 +296,13 @@ int main (int argc, char *argv[])
 #endif
 
 #ifdef ENABLE_NLS
+       /* initialize C and C++ locales to user preference */
        setlocale (LC_ALL, "");
+       try {
+               std::locale::global (std::locale (setlocale (LC_ALL, 0)));
+       } catch (...) {
+               std::cerr << "Cannot set C++ locale\n";
+       }
 #endif
 
        console_madness_begin();