aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-02-10 15:43:53 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-02-10 15:43:53 +0000
commit809faa5237ef2c1d05600e2e25f71f251cf98530 (patch)
treea2401b776308b29b55a89df91f06d25a11d985dd /xmlIO.c
parent1703c5fc238e76532f654747259a20a29c769942 (diff)
downloadandroid_external_libxml2-809faa5237ef2c1d05600e2e25f71f251cf98530.tar.gz
android_external_libxml2-809faa5237ef2c1d05600e2e25f71f251cf98530.tar.bz2
android_external_libxml2-809faa5237ef2c1d05600e2e25f71f251cf98530.zip
fixing bug #104646 about iconv based encoding conversion when the input
* encoding.c xmlIO.c: fixing bug #104646 about iconv based encoding conversion when the input buffer stops in the middle of a multibyte char Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlIO.c b/xmlIO.c
index cbc542cc..5f28849d 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -2364,7 +2364,7 @@ xmlOutputBufferWrite(xmlOutputBufferPtr out, int len, const char *buf) {
* convert as much as possible to the parser reading buffer.
*/
ret = xmlCharEncOutFunc(out->encoder, out->conv, out->buffer);
- if (ret < 0) {
+ if ((ret < 0) && (ret != -3)) {
xmlGenericError(xmlGenericErrorContext,
"xmlOutputBufferWrite: encoder error\n");
return(-1);