diff options
| author | Richard M. Stallman | 1998-07-28 23:10:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-07-28 23:10:44 +0000 |
| commit | 9e175146b42260f38b10595d33e633fe6b55ca79 (patch) | |
| tree | 6cd3329e3ac2d3b9f69837b6004d7e81b4b67141 /src | |
| parent | 02eddff24a85f37a2defb21d55e66d75fcc558d1 (diff) | |
| download | emacs-9e175146b42260f38b10595d33e633fe6b55ca79.tar.gz emacs-9e175146b42260f38b10595d33e633fe6b55ca79.zip | |
(push_key_description): Output multibyte char as itself.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 12 |
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) | |||
| 1838 | } | 1838 | } |
| 1839 | else | 1839 | else |
| 1840 | { | 1840 | { |
| 1841 | *p++ = '\\'; | 1841 | unsigned char work[4], *str; |
| 1842 | *p++ = (7 & (c >> 15)) + '0'; | 1842 | int i = CHAR_STRING (c, work, str); |
| 1843 | *p++ = (7 & (c >> 12)) + '0'; | 1843 | |
| 1844 | *p++ = (7 & (c >> 9)) + '0'; | 1844 | bcopy (str, p, i); |
| 1845 | *p++ = (7 & (c >> 6)) + '0'; | 1845 | p += i; |
| 1846 | *p++ = (7 & (c >> 3)) + '0'; | ||
| 1847 | *p++ = (7 & (c >> 0)) + '0'; | ||
| 1848 | } | 1846 | } |
| 1849 | 1847 | ||
| 1850 | return p; | 1848 | return p; |