mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* 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:
parent
0061bc7507
commit
8d4c3ae854
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user