]> git.lyx.org Git - lyx.git/blobdiff - src/client/client.C
hopefully fix tex2lyx linking.
[lyx.git] / src / client / client.C
index 15f985ff8d5969779a69230547e0cd74e932d918..424f78623480d7588b0e1811514e441207b5e575 100644 (file)
@@ -13,6 +13,7 @@
 #include <config.h>
 
 #include "debug.h"
+#include "support/unicode.h"
 #include "support/lstrings.h"
 
 #include <boost/filesystem/operations.hpp>
@@ -69,6 +70,13 @@ using std::cin;
 using std::endl;
 
 
+IconvProcessor & utf8ToUcs4()
+{
+       static IconvProcessor iconv(ucs4_codeset, "UTF-8");
+       return iconv;
+}
+
+
 namespace support {
 
 string itoa(unsigned int i)
@@ -498,12 +506,12 @@ int p(vector<char *> const & arg)
 
 } // namespace cmdline
 
-
-
+} // namespace lyx
 
 
 int main(int argc, char * argv[])
 {
+       using namespace lyx;
        lyxerr.rdbuf(cerr.rdbuf());
 
        CmdLineParser args;
@@ -615,4 +623,13 @@ int main(int argc, char * argv[])
 }
 
 
-} // namespace lyx
+namespace boost {
+
+void assertion_failed(char const* a, char const* b, char const* c, long d)
+{
+       lyx::lyxerr << "Assertion failed: " << a << ' ' << b << ' ' << c << ' '
+               << d << '\n';
+}
+
+} // namespace boost
+