X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmain.cpp;h=5c4fb468459dbc3fa2a7ab12bbf418d1b6f7674e;hb=9234516731fac37651f5dacfc0942dc40775b96e;hp=a82663b85743dea91e2db3665f8208fead7e2043;hpb=f630be890494c849981e4fb52ea4740506e92bed;p=lyx.git diff --git a/src/main.cpp b/src/main.cpp index a82663b857..5c4fb46845 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author Jean Marc Lasgouttes * * Full author contact details are available in file CREDITS. @@ -11,37 +11,31 @@ #include -#include "debug.h" #include "LyX.h" -#include "gettext.h" +#include "support/debug.h" #include "support/os.h" -#include - +#include #ifdef HAVE_IOS #include #endif +using namespace std; -namespace fs = boost::filesystem; int main(int argc, char * argv[]) { #ifdef HAVE_IOS - std::ios_base::sync_with_stdio(false); + ios_base::sync_with_stdio(false); #endif - fs::path::default_name_check(fs::no_check); // To avoid ordering of global object problems with some // stdlibs we do the initialization here, but still as // early as possible. - lyx::lyxerr.rdbuf(std::cerr.rdbuf()); - - lyx::support::os::init(argc, argv); + lyx::lyxerr.setStream(cerr); - // initialize for internationalized version *EK* - lyx::locale_init(); + lyx::support::os::init(argc, &argv); lyx::LyX the_lyx_instance;