changeset 22841:330629423307

(push_key_description): Output multibyte char as itself.
author Richard M. Stallman <rms@gnu.org>
date Tue, 28 Jul 1998 23:10:44 +0000
parents be572a467b59
children 2398b380208e
files src/keymap.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Tue Jul 28 07:30:04 1998 +0000
+++ b/src/keymap.c	Tue Jul 28 23:10:44 1998 +0000
@@ -1838,13 +1838,11 @@
     }
   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;