]> git.eshelyaron.com Git - emacs.git/commitdiff
(casify_region): Fix multibyte case.
authorKenichi Handa <handa@m17n.org>
Tue, 5 Mar 2002 00:07:19 +0000 (00:07 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 5 Mar 2002 00:07:19 +0000 (00:07 +0000)
src/casefiddle.c

index 790ae1e53bb66c2e6b2a1af2e6836ad8b9365a06..0f060b8a0aed5650e2cf8e84496f5f336be89294 100644 (file)
@@ -254,7 +254,8 @@ casify_region (flag, b, e)
 
              changed = 1;
              /* Handle the most likely case */
-             if (c < 0400 && c2 < 0400)
+             if (multibyte ? (c < 0200 && c2 < 0200)
+                 : (c < 0400 && c2 < 0400))
                FETCH_BYTE (i) = c2;
              else if (fromlen = CHAR_STRING (c, str),
                       tolen = CHAR_STRING (c2, str),