* 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.
#include "LyX.h"
#include "support/debug.h"
-#include "support/gettext.h"
#include "support/os.h"
#include <iostream>
#include <ios>
#endif
+#ifdef WIN32
+#include <Windows.h>
+#endif
+
+
using namespace std;
ios_base::sync_with_stdio(false);
#endif
+#ifdef WIN32
+ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
+ freopen("CONOUT$", "w", stdout);
+ freopen("CONOUT$", "w", stderr);
+ }
+#endif
+
// To avoid ordering of global object problems with some
// stdlibs we do the initialization here, but still as
// early as possible.
lyx::lyxerr.setStream(cerr);
- LYXERR0("acssdc");
-
- lyx::support::os::init(argc, argv);
-
- // initialize for internationalized version *EK*
- lyx::locale_init();
+ lyx::support::os::init(argc, &argv);
lyx::LyX the_lyx_instance;