changeset 37747:e5c590c9fe66

(Fsingle_key_description): Replace a build_string with a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 16 May 2001 10:49:21 +0000
parents 0204bb9ccc1e
children 16563487a397
files src/keymap.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Wed May 16 10:36:54 2001 +0000
+++ b/src/keymap.c	Wed May 16 10:49:21 2001 +0000
@@ -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 @@
       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 */