summaryrefslogtreecommitdiff
path: root/enc.h
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2013-02-13 18:19:42 +0800
committerDaniel Veillard <veillard@redhat.com>2013-02-13 18:19:42 +0800
commitbf058dce131751ff8b69d32eae68cf564cd73aef (patch)
treef5e42fc735ce15404d2b19c330a3ea748c8b435a /enc.h
parentde0cc20c29cb3f056062925395e0f68d2250a46f (diff)
downloadlibxml2-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc.h b/enc.h
index 91977604..057d206d 100644
--- a/enc.h
+++ b/enc.h
@@ -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