From: Kenichi Handa Date: Tue, 4 Jan 2000 01:58:49 +0000 (+0000) Subject: (encode_terminal_code): Fix the previous change. X-Git-Tag: emacs-pretest-21.0.90~5523 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c989b7be8fac79e6fc150a800a8e059879223683;p=emacs.git (encode_terminal_code): Fix the previous change. --- diff --git a/src/ChangeLog b/src/ChangeLog index 88afe13be4c..af1a944ef91 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,6 @@ 2000-01-04 Kenichi Handa - * term.c (encode_terminal_code): Fix the previous change. + * term.c (encode_terminal_code): Fix previous change. 2000-01-03 Gerd Moellmann diff --git a/src/term.c b/src/term.c index d4ea6a6f2f7..b19e9623b57 100644 --- a/src/term.c +++ b/src/term.c @@ -966,8 +966,11 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed) if (GLYPH_SIMPLE_P (tbase, tlen, g)) { - /* We set the multi-byte form of C at WORKBUF. */ - len = CHAR_STRING (src->u.ch, workbuf); + /* We set the multi-byte form of a character in G + (that should be an ASCII character) at + WORKBUF. */ + workbuf[0] = FAST_GLYPH_CHAR (g); + len = 1; buf = workbuf; } else