From 9e175146b42260f38b10595d33e633fe6b55ca79 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 28 Jul 1998 23:10:44 +0000 Subject: [PATCH] (push_key_description): Output multibyte char as itself. --- src/keymap.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/keymap.c b/src/keymap.c index 72dbb389764..a32d8a10110 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -1838,13 +1838,11 @@ push_key_description (c, p) } else { - *p++ = '\\'; - *p++ = (7 & (c >> 15)) + '0'; - *p++ = (7 & (c >> 12)) + '0'; - *p++ = (7 & (c >> 9)) + '0'; - *p++ = (7 & (c >> 6)) + '0'; - *p++ = (7 & (c >> 3)) + '0'; - *p++ = (7 & (c >> 0)) + '0'; + unsigned char work[4], *str; + int i = CHAR_STRING (c, work, str); + + bcopy (str, p, i); + p += i; } return p; -- 2.39.2