scramble email addresses
[lyx.git] / src / main.cpp
bloba82663b85743dea91e2db3665f8208fead7e2043
1 /**
2 * \file main.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
7 * \author Jean Marc Lasgouttes
9 * Full author contact details are available in file CREDITS.
12 #include <config.h>
14 #include "debug.h"
15 #include "LyX.h"
16 #include "gettext.h"
18 #include "support/os.h"
20 #include <boost/filesystem/path.hpp>
22 #ifdef HAVE_IOS
23 #include <ios>
24 #endif
27 namespace fs = boost::filesystem;
29 int main(int argc, char * argv[])
31 #ifdef HAVE_IOS
32 std::ios_base::sync_with_stdio(false);
33 #endif
34 fs::path::default_name_check(fs::no_check);
36 // To avoid ordering of global object problems with some
37 // stdlibs we do the initialization here, but still as
38 // early as possible.
39 lyx::lyxerr.rdbuf(std::cerr.rdbuf());
41 lyx::support::os::init(argc, argv);
43 // initialize for internationalized version *EK*
44 lyx::locale_init();
46 lyx::LyX the_lyx_instance;
48 return the_lyx_instance.exec(argc, argv);