Fix an uncaught exception on OSX, perhaps general with popups

This commit is contained in:
Jens Verwiebe 2014-02-23 20:38:29 +01:00
parent d92f6b9903
commit 8be628cf7f

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