]> git.lyx.org Git - lyx.git/blobdiff - src/support/Messages.cpp
add debug function which prints the callstack to stderr, disabled by default
[lyx.git] / src / support / Messages.cpp
index 0aa29d84e0290caecd3b0e36e865c0a637c29d51..17ba0c56961db70f7698496fdd7012330c3a42c1 100644 (file)
@@ -165,6 +165,11 @@ docstring const Messages::get(string const & m) const
 #endif
        }
 
+       // FIXME: gettext sometimes "forgets" the ucs4_codeset we set
+       // in init(), which leads to severe message corruption (#7371)
+       // We set it again here unconditionally. A real fix must be found!
+       LASSERT(bind_textdomain_codeset(PACKAGE, ucs4_codeset), /**/);
+
        char const * m_c = m.c_str();
        char const * trans_c = gettext(m_c);
        docstring trans;
@@ -231,7 +236,7 @@ docstring const Messages::get(string const & m) const
 
 bool Messages::available() const
 {
-       return true;
+       return false;
 }
 
 } // namespace lyx