]> git.lyx.org Git - lyx.git/blobdiff - src/messages.C
Scons: update_po target, part one: language_l10n.pot
[lyx.git] / src / messages.C
index 3a628fe9bfdd62ae6acf9a35d49f6b7422173c74..d1f8381fb22809480b6afe383befccb49199a7fe 100644 (file)
@@ -17,7 +17,7 @@
 #include "support/environment.h"
 #include "support/filetools.h"
 #include "support/package.h"
-#include "support/types.h"
+#include "support/unicode.h"
 
 #include <boost/current_function.hpp>
 #include <boost/regex.hpp>
@@ -52,12 +52,6 @@ using support::getEnv;
 using support::setEnv;
 
 
-#ifdef WORDS_BIGENDIAN
-               char const * codeset = "UCS-4BE";
-#else
-               char const * codeset = "UCS-4LE";
-#endif
-
 // This version use the traditional gettext.
 Messages::Messages(string const & l)
        : lang_(l), warned_(false)
@@ -129,11 +123,11 @@ docstring const Messages::get(string const & m) const
                        << "Rtn value : " << c << endl;
        }
 
-       if (!bind_textdomain_codeset(PACKAGE, codeset)) {
+       if (!bind_textdomain_codeset(PACKAGE, ucs4_codeset)) {
                lyxerr[Debug::DEBUG]
                << BOOST_CURRENT_FUNCTION << '\n'
                        << "Error code: " << errno << '\n'
-                       << "Codeset   : " << codeset << '\n'
+                       << "Codeset   : " << ucs4_codeset << '\n'
                        << endl;
        }