# HG changeset patch # User Kenichi Handa # Date 946950922 0 # Node ID 5cd86a04d3efc96cb56ac2c33300d49ff6c8632c # Parent 5ecfba201588f400f1574fdf07bfcc36d6d0beff (encode_terminal_code): Fix the previous change. diff -r 5ecfba201588 -r 5cd86a04d3ef src/term.c --- a/src/term.c Tue Jan 04 01:53:54 2000 +0000 +++ b/src/term.c Tue Jan 04 01:55:22 2000 +0000 @@ -966,8 +966,11 @@ 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