diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-05-16 10:49:21 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-05-16 10:49:21 +0000 |
commit | d4ae91d2ce2a3cc51a315f62aea005c92f2fd4b0 (patch) | |
tree | 695025bf71fc0c194224d96c53d0faab5a2ab5d3 | |
parent | 502522b28034c87b1e7fcffd612d418b7df9e450 (diff) | |
download | emacs-d4ae91d2ce2a3cc51a315f62aea005c92f2fd4b0.tar.gz emacs-d4ae91d2ce2a3cc51a315f62aea005c92f2fd4b0.tar.bz2 emacs-d4ae91d2ce2a3cc51a315f62aea005c92f2fd4b0.zip |
(Fsingle_key_description): Replace a build_string with
a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
-rw-r--r-- | src/keymap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c index e9e51c785de..a1f0de1c09a 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -1,5 +1,5 @@ /* Manipulation of keymaps - Copyright (C) 1985, 86,87,88,93,94,95,98,99, 2000 + Copyright (C) 1985, 86,87,88,93,94,95,98,99, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -1960,9 +1960,13 @@ around function keys and event symbols.") else { char tem[KEY_DESCRIPTION_SIZE]; + int len; *push_key_description (XUINT (key), tem, 1) = 0; - return build_string (tem); + len = strlen (tem); + return make_multibyte_string (tem, + multibyte_chars_in_text (tem, len), + len); } } else if (SYMBOLP (key)) /* Function key or event-symbol */ |