From: Kenichi Handa Date: Tue, 5 Mar 2002 00:07:19 +0000 (+0000) Subject: (casify_region): Fix multibyte case. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~956 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ed5d25fe5e9ffce2359ba166d277570e87c959e6;p=emacs.git (casify_region): Fix multibyte case. --- diff --git a/src/casefiddle.c b/src/casefiddle.c index 790ae1e53bb..0f060b8a0ae 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c @@ -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),