Again, portability fixes

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1159 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-09-14 20:42:54 +00:00
parent 93359507ea
commit 503634d7c5
8 changed files with 36 additions and 7 deletions

View file

@ -42,11 +42,17 @@ main(int argc, char* argv[])
using namespace std;
using Glib::ustring;
#ifndef _MSC_VER
// Set up gettext support
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
#endif
#ifndef NDEBUG
try
{
#endif
// Set up Glib thread support
Glib::thread_init();
@ -54,5 +60,17 @@ main(int argc, char* argv[])
// filenames of documents to be opened
parse_options(argc, argv);
#ifndef NDEBUG
}
catch(const std::exception& exp)
{
std::cerr << exp.what() << std::endl;
}
catch(const Glib::Exception& gexp)
{
std::cerr << gexp.what() << std::endl;
}
#endif
return 0;
}