Commit 1814bd62 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(write_glyphs): When terminal_coding require flushing,

call encode_coding with "" as the SOURCE arg so that ccl_driver
correctly processes eof block of a CCL program.
parent b638f328
...@@ -930,7 +930,7 @@ write_glyphs (string, len) ...@@ -930,7 +930,7 @@ write_glyphs (string, len)
if (CODING_REQUIRE_FLUSHING (&terminal_coding)) if (CODING_REQUIRE_FLUSHING (&terminal_coding))
{ {
terminal_coding.mode |= CODING_MODE_LAST_BLOCK; terminal_coding.mode |= CODING_MODE_LAST_BLOCK;
encode_coding (&terminal_coding, (char *)0, conversion_buffer, encode_coding (&terminal_coding, "", conversion_buffer,
0, conversion_buffer_size); 0, conversion_buffer_size);
if (terminal_coding.produced > 0) if (terminal_coding.produced > 0)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment