Commit d4ae91d2 authored by Gerd Moellmann's avatar Gerd Moellmann

(Fsingle_key_description): Replace a build_string with

a make_multibyte_string.  From Kenichi Handa <handa@etl.go.jp>.
parent 502522b2
/* 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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment