summaryrefslogtreecommitdiff
path: root/src/keymap.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-07-28 23:10:44 +0000
committerRichard M. Stallman <rms@gnu.org>1998-07-28 23:10:44 +0000
commit9e175146b42260f38b10595d33e633fe6b55ca79 (patch)
tree6cd3329e3ac2d3b9f69837b6004d7e81b4b67141 /src/keymap.c
parent02eddff24a85f37a2defb21d55e66d75fcc558d1 (diff)
downloademacs-9e175146b42260f38b10595d33e633fe6b55ca79.tar.gz
(push_key_description): Output multibyte char as itself.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c12
1 files 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;