(concat): Check CH by ASCII_CHAR_P, not by
authorKenichi Handa <handa@m17n.org>
Tue, 15 Oct 2002 01:18:25 +0000 (01:18 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 15 Oct 2002 01:18:25 +0000 (01:18 +0000)
SINGLE_BYTE_CHAR_P.

src/fns.c

index 27fdcdd..c11f9d0 100644 (file)
--- 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))