(Fchar_equal): Don't ignore high bits of character.
authorRichard M. Stallman <rms@gnu.org>
Sat, 27 Mar 1993 04:20:05 +0000 (04:20 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 27 Mar 1993 04:20:05 +0000 (04:20 +0000)
src/editfns.c

index d936dc4..9936593 100644 (file)
@@ -1416,7 +1416,8 @@ Case is ignored if `case-fold-search' is non-nil in the current buffer.")
   CHECK_NUMBER (c2, 1);
 
   if (!NILP (current_buffer->case_fold_search)
-      ? downcase[0xff & XFASTINT (c1)] == downcase[0xff & XFASTINT (c2)]
+      ? (downcase[0xff & XFASTINT (c1)] == downcase[0xff & XFASTINT (c2)]
+        && (XFASTINT (c1) & ~0xff) == (XFASTINT (c2) & ~0xff))
       : XINT (c1) == XINT (c2))
     return Qt;
   return Qnil;