]> git.lyx.org Git - lyx.git/blobdiff - src/main.C
More 'standard conformant blurb' nonsense.
[lyx.git] / src / main.C
index ebb6bacd00375cb8b398c472be33fa906a56b4b2..18413bf4f7ea7bf05d60e64e8219793782faa8e7 100644 (file)
@@ -3,30 +3,32 @@
  * Copyright 2002 the LyX Team
  * Read the file COPYING
  *
- * \author unknown
+ * \author Lars Gullik Bjønnes
+ * \author Jean Marc Lasgouttes
  */
 
 #include <config.h>
 
 #include "lyx_main.h"
 #include "gettext.h"
-#include "LString.h"
-#include "support/filetools.h"
 #include "support/os.h"
+
+#ifdef HAVE_IOS
+#include <ios>
+#endif
+
+using namespace lyx::support;
+
 int main(int argc, char * argv[])
 {
-       os::init(&argc, &argv);
+#ifdef HAVE_IOS
+       std::ios_base::sync_with_stdio(false);
+#endif
 
-       // lyx_localedir is used by gettext_init() is we have
-       //   i18n support built-in
-       string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
-       if (lyx_localedir.empty())
-               lyx_localedir = LOCALEDIR;
+       os::init(&argc, &argv);
 
        // initialize for internationalized version *EK*
        locale_init();
-       gettext_init(lyx_localedir);
 
        LyX lyx(argc, argv);
        return 0;