]> git.eshelyaron.com Git - emacs.git/commitdiff
(write_glyphs): When terminal_coding require flushing,
authorKenichi Handa <handa@m17n.org>
Tue, 18 Aug 1998 13:15:18 +0000 (13:15 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 18 Aug 1998 13:15:18 +0000 (13:15 +0000)
call encode_coding with "" as the SOURCE arg so that ccl_driver
correctly processes eof block of a CCL program.

src/term.c

index 05860cf7bd414e38f7625f598e4356a2ed961c53..de48cb0eb88699188982dd9c9f3570000ab2cf19 100644 (file)
@@ -930,7 +930,7 @@ write_glyphs (string, len)
   if (CODING_REQUIRE_FLUSHING (&terminal_coding))
     {
       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);
       if (terminal_coding.produced > 0)
        {