mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 15:52:00 -08:00
(encode_terminal_code): Set coding->src_multibyte properly.
This commit is contained in:
parent
3d80f24d75
commit
f2ba40be95
1 changed files with 4 additions and 0 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue