aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2000-05-23 01:33:40 +0000
committerKenichi Handa2000-05-23 01:33:40 +0000
commitf2ba40be95036ad37fa472e14eaebd3e6cf25ba1 (patch)
tree99b87439bd672b0cbb49c68c973d7aa00fd64ebf /src
parent3d80f24d75f1da2168347103611bb808b0481c15 (diff)
downloademacs-f2ba40be95036ad37fa472e14eaebd3e6cf25ba1.tar.gz
emacs-f2ba40be95036ad37fa472e14eaebd3e6cf25ba1.zip
(encode_terminal_code): Set coding->src_multibyte properly.
Diffstat (limited to 'src')
-rw-r--r--src/term.c4
1 files changed, 4 insertions, 0 deletions
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)
972 { 972 {
973 len = 1; 973 len = 1;
974 buf = " "; 974 buf = " ";
975 coding->src_multibyte = 0;
975 } 976 }
976 else 977 else
977 { 978 {
978 len = CHAR_STRING (src->u.ch, workbuf); 979 len = CHAR_STRING (src->u.ch, workbuf);
979 buf = workbuf; 980 buf = workbuf;
981 coding->src_multibyte = 1;
980 } 982 }
981 } 983 }
982 else 984 else
@@ -993,12 +995,14 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed)
993 workbuf[0] = FAST_GLYPH_CHAR (g); 995 workbuf[0] = FAST_GLYPH_CHAR (g);
994 len = 1; 996 len = 1;
995 buf = workbuf; 997 buf = workbuf;
998 coding->src_multibyte = 0;
996 } 999 }
997 else 1000 else
998 { 1001 {
999 /* We have a string in Vglyph_table. */ 1002 /* We have a string in Vglyph_table. */
1000 len = GLYPH_LENGTH (tbase, g); 1003 len = GLYPH_LENGTH (tbase, g);
1001 buf = GLYPH_STRING (tbase, g); 1004 buf = GLYPH_STRING (tbase, g);
1005 coding->src_multibyte = STRING_MULTIBYTE (tbase[g]);
1002 } 1006 }
1003 } 1007 }
1004 1008