mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
630140 fix iso995x encoding error
https://bugzilla.gnome.org/show_bug.cgi?id=630140 Fix the bug, which happen when using the embedded converters and not iconv
This commit is contained in:
@@ -2039,6 +2039,10 @@ retry:
|
|||||||
xmlBufferShrink(in, toconv);
|
xmlBufferShrink(in, toconv);
|
||||||
out->use += written;
|
out->use += written;
|
||||||
writtentot += written;
|
writtentot += written;
|
||||||
|
/* multichar cut at end of buffer can generate that problem */
|
||||||
|
if (ret == -2) {
|
||||||
|
ret = -3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
out->content[out->use] = 0;
|
out->content[out->use] = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user