+2000-02-02 Kenichi Handa <handa@etl.go.jp>
+
+ * fileio.c (e_write): Fix the handling of
+ CODING_FINISH_INSUFFICIENT_SRC.
+
2000-02-01 Dave Love <fx@gnu.org>
* editfns.c (Fpropertize): Doc fix.
break;
}
}
- if (result == CODING_FINISH_INSUFFICIENT_SRC)
+ nbytes -= coding->consumed;
+ addr += coding->consumed;
+ if (result == CODING_FINISH_INSUFFICIENT_SRC
+ && nbytes > 0)
{
/* The source text ends by an incomplete multibyte form.
There's no way other than write it out as is. */
}
if (nbytes <= 0)
break;
- nbytes -= coding->consumed;
- addr += coding->consumed;
start += coding->consumed_char;
if (coding->cmp_data)
coding_adjust_composition_offset (coding, start);