comparison src/keymap.c @ 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 f5bdd1200e0e
children db3e294b4ce2
comparison
equal deleted inserted replaced
37746:0204bb9ccc1e 37747:e5c590c9fe66
1 /* Manipulation of keymaps 1 /* Manipulation of keymaps
2 Copyright (C) 1985, 86,87,88,93,94,95,98,99, 2000 2 Copyright (C) 1985, 86,87,88,93,94,95,98,99, 2000, 2001
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
6 6
7 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
1958 return concat2 (build_string ("Character set "), name); 1958 return concat2 (build_string ("Character set "), name);
1959 } 1959 }
1960 else 1960 else
1961 { 1961 {
1962 char tem[KEY_DESCRIPTION_SIZE]; 1962 char tem[KEY_DESCRIPTION_SIZE];
1963 int len;
1963 1964
1964 *push_key_description (XUINT (key), tem, 1) = 0; 1965 *push_key_description (XUINT (key), tem, 1) = 0;
1965 return build_string (tem); 1966 len = strlen (tem);
1967 return make_multibyte_string (tem,
1968 multibyte_chars_in_text (tem, len),
1969 len);
1966 } 1970 }
1967 } 1971 }
1968 else if (SYMBOLP (key)) /* Function key or event-symbol */ 1972 else if (SYMBOLP (key)) /* Function key or event-symbol */
1969 { 1973 {
1970 if (NILP (no_angles)) 1974 if (NILP (no_angles))