changeset 88426:b8ca2da7f69a

(casify_region): Fix multibyte case.
author Kenichi Handa <handa@m17n.org>
date Tue, 05 Mar 2002 00:07:19 +0000
parents d7bd9df1799d
children 1a3aec316071
files src/casefiddle.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/casefiddle.c	Tue Mar 05 00:06:48 2002 +0000
+++ b/src/casefiddle.c	Tue Mar 05 00:07:19 2002 +0000
@@ -254,7 +254,8 @@
 
 	      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),