From 5d516ca2943d4eca9ca19788f6ce520b029b9811 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 15 Oct 2002 01:18:25 +0000 Subject: [PATCH] (concat): Check CH by ASCII_CHAR_P, not by SINGLE_BYTE_CHAR_P. --- src/fns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fns.c b/src/fns.c index 27fdcdd35a3..c11f9d0c80d 100644 --- a/src/fns.c +++ b/src/fns.c @@ -585,7 +585,7 @@ concat (nargs, args, target_type, last_special) wrong_type_argument (Qcharacterp, ch); this_len_byte = CHAR_BYTES (XINT (ch)); result_len_byte += this_len_byte; - if (!SINGLE_BYTE_CHAR_P (XINT (ch))) + if (!ASCII_CHAR_P (XINT (ch))) some_multibyte = 1; } else if (BOOL_VECTOR_P (this) && XBOOL_VECTOR (this)->size > 0) @@ -598,7 +598,7 @@ concat (nargs, args, target_type, last_special) wrong_type_argument (Qcharacterp, ch); this_len_byte = CHAR_BYTES (XINT (ch)); result_len_byte += this_len_byte; - if (!SINGLE_BYTE_CHAR_P (XINT (ch))) + if (!ASCII_CHAR_P (XINT (ch))) some_multibyte = 1; } else if (STRINGP (this)) -- 2.39.2