Permalink
Browse files

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
  • Loading branch information...
1 parent e306260 commit 083caf5ec8045bfec5f9aca62c6f02dd0007dc92 @veillard veillard committed Nov 3, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 encoding.c
View
@@ -2039,7 +2039,11 @@ xmlCharEncOutFunc(xmlCharEncodingHandler *handler, xmlBufferPtr out,
xmlBufferShrink(in, toconv);
out->use += written;
writtentot += written;
- }
+ /* multichar cut at end of buffer can generate that problem */
+ if (ret == -2) {
+ ret = -3;
+ }
+ }
out->content[out->use] = 0;
}
#ifdef LIBXML_ICONV_ENABLED

0 comments on commit 083caf5

Please sign in to comment.