#include "debug.h"
#include "support/filetools.h"
#include "support/package.h"
+#include "support/unicode.h"
#include <boost/current_function.hpp>
<< "Rtn value : " << c << endl;
}
-#ifdef WORDS_BIGENDIAN
- static const char * codeset = "UCS-4BE";
-#else
- static const char * codeset = "UCS-4LE";
-#endif
- 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;
}
#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>
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)
<< "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;
}