cvsdist ac8957
--- grep-2.5.1/src/search.c.oi	2003-12-08 10:56:43.000000000 +0000
cvsdist ac8957
+++ grep-2.5.1/src/search.c	2003-12-08 11:01:11.000000000 +0000
cvsdist ac8957
@@ -219,6 +219,21 @@
cvsdist ac8957
 
cvsdist ac8957
       patterns[pcount] = patterns0;
cvsdist ac8957
 
cvsdist ac8957
+      // patch ed@javabase.fsnet.co.uk
cvsdist ac8957
+      if (match_icase
cvsdist ac8957
+#ifdef MBS_SUPPORT
cvsdist ac8957
+	  && MB_CUR_MAX == 1
cvsdist ac8957
+#endif /* MBS_SUPPORT */
cvsdist ac8957
+		     )
cvsdist ac8957
+	{
cvsdist ac8957
+	  static char trans[NCHAR];
cvsdist 732ac9
+	  int i;
cvsdist ac8957
+	  for (i = 0; i < NCHAR; ++i)
cvsdist ac8957
+	    trans[i] = TOLOWER (i);
cvsdist ac8957
+	  patterns[pcount].regexbuf.translate = trans;
cvsdist ac8957
+	} 
cvsdist ac8957
+      // end patch
cvsdist ac8957
+    
cvsdist ac8957
       if ((err = re_compile_pattern (motif, len,
cvsdist ac8957
 				    &(patterns[pcount].regexbuf))) != 0)
cvsdist ac8957
 	error (2, 0, err);
cvsdist ac8957
@@ -302,6 +317,21 @@
cvsdist ac8957
 	error (2, errno, _("memory exhausted"));
cvsdist ac8957
       patterns[pcount] = patterns0;
cvsdist ac8957
 
cvsdist ac8957
+      // patch ed@javabase.fsnet.co.uk
cvsdist ac8957
+      if (match_icase
cvsdist ac8957
+#ifdef MBS_SUPPORT
cvsdist ac8957
+	  && MB_CUR_MAX == 1
cvsdist ac8957
+#endif /* MBS_SUPPORT */
cvsdist ac8957
+		     )
cvsdist ac8957
+	{
cvsdist ac8957
+	  static char trans[NCHAR];
cvsdist ac8957
+	  int i;
cvsdist ac8957
+	  for (i = 0; i < NCHAR; ++i)
cvsdist ac8957
+	    trans[i] = TOLOWER (i);
cvsdist ac8957
+	  patterns[pcount].regexbuf.translate = trans;
cvsdist ac8957
+	} 
cvsdist ac8957
+      // end patch
cvsdist ac8957
+    
cvsdist ac8957
       if ((err = re_compile_pattern (motif, len,
cvsdist ac8957
 				    &(patterns[pcount].regexbuf))) != 0)
cvsdist ac8957
 	error (2, 0, err);