#include "enums.h"
#include "bundle_env.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
#ifdef PLATFORM_WINDOWS
#include <fcntl.h> // Needed for '_fmode'
#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();