* Messages.cpp (get):

- set again bind_textdomain_codeset before calling gettext.
	  This works around the infamous bug #7371

Patch from Peter Kümmel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38325 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2011-04-10 16:53:10 +00:00
parent 0061bc7507
commit 8d4c3ae854

View 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;