mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
* src/support/unicode.cpp (convert):
- flush out data at the end of the conversion process (bug 4439). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22319 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2f22c881ee
commit
c26050ac83
@ -3,7 +3,7 @@
|
|||||||
* This file is part of LyX, the document processor.
|
* This file is part of LyX, the document processor.
|
||||||
* Licence details can be found in the file COPYING.
|
* Licence details can be found in the file COPYING.
|
||||||
*
|
*
|
||||||
* \author Lars Gullik Bjønnes
|
* \author Lars Gullik Bjønnes
|
||||||
*
|
*
|
||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*
|
*
|
||||||
@ -134,6 +134,11 @@ int IconvProcessor::convert(char const * buf, size_t buflen,
|
|||||||
|
|
||||||
int res = iconv(pimpl_->cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
|
int res = iconv(pimpl_->cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
|
||||||
|
|
||||||
|
// flush out remaining data. This is needed because iconv sometimes
|
||||||
|
// holds back chars in the stream, waiting for a combination character
|
||||||
|
// (see e.g. http://sources.redhat.com/bugzilla/show_bug.cgi?id=1124)
|
||||||
|
iconv(pimpl_->cd, NULL, NULL, &outbuf, &outbytesleft);
|
||||||
|
|
||||||
//lyxerr << dec;
|
//lyxerr << dec;
|
||||||
//lyxerr << "Inbytesleft: " << inbytesleft << endl;
|
//lyxerr << "Inbytesleft: " << inbytesleft << endl;
|
||||||
//lyxerr << "Outbytesleft: " << outbytesleft << endl;
|
//lyxerr << "Outbytesleft: " << outbytesleft << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user