- if (! CODING_REQUIRE_ENCODING (&terminal_coding))
- /* We had better avoid sending Emacs' internal code to
- terminal. */
- produced = encode_coding (&safe_terminal_coding, buf, dst,
- len, dst_end - dst, &processed);
- else
- produced = encode_coding (&terminal_coding, buf, dst,
- len, dst_end - dst, &processed);
- if (processed < len)
+ encode_coding (coding, buf, dst, len, dst_end - dst);
+ if (coding->consumed < len)