1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-18 11:50:38 -08:00

coding.c (encode_coding_ccl): Check (charbuf < charbuf_end) after the loop to call ccl_driver at least once.

This commit is contained in:
Kenichi Handa 2011-12-08 14:54:20 +09:00
parent 745fff94a0
commit 76470ad1a0
2 changed files with 7 additions and 1 deletions

View file

@ -5244,7 +5244,7 @@ encode_coding_ccl (struct coding_system *coding)
&& coding->mode & CODING_MODE_LAST_BLOCK)
ccl->last_block = 1;
while (charbuf < charbuf_end)
do
{
ccl_driver (ccl, charbuf, destination_charbuf,
charbuf_end - charbuf, 1024, charset_list);
@ -5266,6 +5266,7 @@ encode_coding_ccl (struct coding_system *coding)
|| ccl->status == CCL_STAT_INVALID_CMD)
break;
}
while (charbuf < charbuf_end);
switch (ccl->status)
{