diff options
author | Daniel Veillard <veillard@redhat.com> | 2013-02-13 18:19:42 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2013-02-13 18:19:42 +0800 |
commit | bf058dce131751ff8b69d32eae68cf564cd73aef (patch) | |
tree | f5e42fc735ce15404d2b19c330a3ea748c8b435a /enc.h | |
parent | de0cc20c29cb3f056062925395e0f68d2250a46f (diff) | |
download | libxml2-bf058dce131751ff8b69d32eae68cf564cd73aef.tar.gz |
Fix the flushing out of raw buffers on encoding conversions
https://bugzilla.gnome.org/show_bug.cgi?id=692915
the new set of converting functions tried to limit the encoding
conversion of the raw buffer to the consumption one to work in
a more progressive fashion. Unfortunately this was bad for
performances and led to errors on progressive parsing when
a very large chunk was close to the end of the document. Fix
the new internal function and switch back to the old way of
converting. Fix another bug in the process.
Diffstat (limited to 'enc.h')
-rw-r--r-- | enc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -21,7 +21,7 @@ extern "C" { int xmlCharEncFirstLineInt(xmlCharEncodingHandler *handler, xmlBufferPtr out, xmlBufferPtr in, int len); int xmlCharEncFirstLineInput(xmlParserInputBufferPtr input, int len); -int xmlCharEncInput(xmlParserInputBufferPtr input); +int xmlCharEncInput(xmlParserInputBufferPtr input, int flush); int xmlCharEncOutput(xmlOutputBufferPtr output, int init); #ifdef __cplusplus |