1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

(Fsingle_key_description): Replace a build_string with

a make_multibyte_string.  From Kenichi Handa <handa@etl.go.jp>.
This commit is contained in:
Gerd Moellmann 2001-05-16 10:49:21 +00:00
parent 502522b280
commit d4ae91d2ce

View File

@ -1,5 +1,5 @@
/* Manipulation of keymaps /* 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. Free Software Foundation, Inc.
This file is part of GNU Emacs. This file is part of GNU Emacs.
@ -1960,9 +1960,13 @@ around function keys and event symbols.")
else else
{ {
char tem[KEY_DESCRIPTION_SIZE]; char tem[KEY_DESCRIPTION_SIZE];
int len;
*push_key_description (XUINT (key), tem, 1) = 0; *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 */ else if (SYMBOLP (key)) /* Function key or event-symbol */