Fix an uncaught exception on OSX, perhaps general with popups
authorJens Verwiebe <info@jensverwiebe.de>
Sun, 23 Feb 2014 19:38:29 +0000 (20:38 +0100)
committerJens Verwiebe <info@jensverwiebe.de>
Sun, 23 Feb 2014 19:38:29 +0000 (20:38 +0100)
intern/locale/boost_locale_wrapper.cpp

index 945d0bbc5da995d933bd1e8f77ac2e82dfaea087..4d429f4078d30542af66a3b9f7ab020d82b73bdc 100644 (file)
@@ -113,6 +113,9 @@ const char *bl_locale_pgettext(const char *msgctxt, const char *msgid)
                        return r;
                return msgid;
        }
+       catch(std::bad_cast) { /* std::bad_cast if std::has_facet<Facet>(loc) == false */
+               return msgid;
+       }
        catch(std::exception const &) {
 //             std::cout << "bl_locale_pgettext(" << msgctxt << ", " << msgid << "): " << e.what() << " \n";
                return msgid;