]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.C
hopefully fix tex2lyx linking.
[lyx.git] / src / tex2lyx / tex2lyx.C
index f37f9cd0d817979d51a5ff63de2c8ed45732fde6..1175754ec2241028ddfc34dfb500f9ffc0bd4261 100644 (file)
@@ -25,6 +25,7 @@
 #include "support/lyxlib.h"
 #include "support/os.h"
 #include "support/package.h"
+#include "support/unicode.h"
 
 #include <boost/function.hpp>
 #include <boost/filesystem/operations.hpp>
@@ -38,6 +39,9 @@
 #include <vector>
 #include <map>
 
+
+namespace lyx {
+
 using std::endl;
 using std::cout;
 using std::cerr;
@@ -63,6 +67,13 @@ using lyx::support::isFileReadable;
 namespace fs = boost::filesystem;
 
 
+IconvProcessor & utf8ToUcs4()
+{
+       static IconvProcessor iconv(ucs4_codeset, "UTF-8");
+       return iconv;
+}
+
+
 // Hacks to allow the thing to link in the lyxlayout stuff
 LyXErr lyxerr(std::cerr.rdbuf());
 
@@ -490,9 +501,12 @@ bool tex2lyx(string const &infilename, string const &outfilename)
        return tex2lyx(infilename, os);
 }
 
+} // namespace lyx
+
 
 int main(int argc, char * argv[])
 {
+       using namespace lyx;
        fs::path::default_name_check(fs::no_check);
 
        easyParse(argc, argv);