From c989b7be8fac79e6fc150a800a8e059879223683 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 4 Jan 2000 01:58:49 +0000 Subject: [PATCH] (encode_terminal_code): Fix the previous change. --- src/ChangeLog | 2 +- src/term.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.39.5