From 0f8ea88f9058403284ed056b129f25f86d909b43 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 15 Oct 2002 01:18:09 +0000 Subject: [PATCH] (general_insert_function): Check VAL by ASCII_CHAR_P, not by SINGLE_BYTE_CHAR_P. --- src/editfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editfns.c b/src/editfns.c index ed0821b9e20..345045d141b 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1992,7 +1992,7 @@ general_insert_function (insert_func, insert_from_string_func, len = CHAR_STRING (XFASTINT (val), str); else { - str[0] = (SINGLE_BYTE_CHAR_P (XINT (val)) + str[0] = (ASCII_CHAR_P (XINT (val)) ? XINT (val) : multibyte_char_to_unibyte (XINT (val), Qnil)); len = 1; -- 2.39.2