From f49770515bd2909b1b9ab752cbd63dbd14dc29f3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 28 Nov 1998 22:16:09 +0000 Subject: [PATCH] (Fsingle_key_description): Fix previous change. --- src/keymap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/keymap.c b/src/keymap.c index 6a7bee4f50c..f96b8d1b784 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -1860,11 +1860,12 @@ Control characters turn into C-whatever, etc.") if (INTEGERP (key)) /* Normal character */ { unsigned int charset, c1, c2; + int without_bits = XINT (key) & ~((-1) << CHARACTERBITS); - if (SINGLE_BYTE_CHAR_P (XINT (key))) + if (SINGLE_BYTE_CHAR_P (without_bits)) charset = 0; else - SPLIT_NON_ASCII_CHAR (XINT (key), charset, c1, c2); + SPLIT_NON_ASCII_CHAR (without_bits, charset, c1, c2); if (charset && ((c1 >= 0 && c1 < 32) -- 2.39.2