From: Kenichi Handa Date: Tue, 23 May 2000 01:33:40 +0000 (+0000) Subject: (encode_terminal_code): Set coding->src_multibyte properly. X-Git-Tag: emacs-pretest-21.0.90~3800 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2ba40be95036ad37fa472e14eaebd3e6cf25ba1;p=emacs.git (encode_terminal_code): Set coding->src_multibyte properly. --- diff --git a/src/term.c b/src/term.c index f99638c36c4..794c92ba011 100644 --- a/src/term.c +++ b/src/term.c @@ -972,11 +972,13 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed) { len = 1; buf = " "; + coding->src_multibyte = 0; } else { len = CHAR_STRING (src->u.ch, workbuf); buf = workbuf; + coding->src_multibyte = 1; } } else @@ -993,12 +995,14 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed) workbuf[0] = FAST_GLYPH_CHAR (g); len = 1; buf = workbuf; + coding->src_multibyte = 0; } else { /* We have a string in Vglyph_table. */ len = GLYPH_LENGTH (tbase, g); buf = GLYPH_STRING (tbase, g); + coding->src_multibyte = STRING_MULTIBYTE (tbase[g]); } }