Help Helge debug locale problem

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10397 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2005-08-18 01:46:44 +00:00
parent a91f7512b2
commit a798566541
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,8 @@
2005-08-18 Martin Vermeer <martin.vermeer@hut.fi>
* messages.C (get): add debug output.
2005-08-02 Martin Vermeer <martin.vermeer@hut.fi>
* text.C (cursorX): fix bug 1965: cursor movement at

View File

@ -115,6 +115,8 @@ public:
}
char const * works = setlocale(LC_MESSAGES, lang_.c_str());
if (!works)
lyxerr << "Locale " << lang_ << " could not be set" << std::endl;
// CTYPE controls what getmessage thinks what encoding the po file uses
string oldCTYPE = setlocale(LC_CTYPE, NULL);
setlocale(LC_CTYPE, lang_.c_str());