auto-import grep-2.5.1-17.3 from grep-2.5.1-17.3.src.rpm
This commit is contained in:
		
							parent
							
								
									fd96adda29
								
							
						
					
					
						commit
						5cfaddb3d1
					
				| @ -1,42 +1,46 @@ | ||||
| https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=72641 (sent upstream) | ||||
| --- grep-2.5.1/src/search.c.oi	2003-12-08 10:56:43.000000000 +0000
 | ||||
| +++ grep-2.5.1/src/search.c	2003-12-08 11:01:11.000000000 +0000
 | ||||
| @@ -219,6 +219,21 @@
 | ||||
|   | ||||
| --- grep-2.5.1/src/grep.c.oi	2002-10-13 20:58:55.000000000 +0100
 | ||||
| +++ grep-2.5.1/src/grep.c	2002-10-13 21:02:43.000000000 +0100
 | ||||
| @@ -533,6 +533,37 @@
 | ||||
|      { | ||||
|        size_t match_size; | ||||
|        size_t match_offset; | ||||
| +      if(match_icase)
 | ||||
| +        {
 | ||||
| +          char *buf = (char*) xmalloc (lim - beg);
 | ||||
| +	  char *ibeg = buf;
 | ||||
| +	  char *ilim = ibeg + (lim - beg);
 | ||||
|        patterns[pcount] = patterns0; | ||||
|   | ||||
| +      // patch ed@javabase.fsnet.co.uk
 | ||||
| +      if (match_icase
 | ||||
| +#ifdef MBS_SUPPORT
 | ||||
| +	  && MB_CUR_MAX == 1
 | ||||
| +#endif /* MBS_SUPPORT */
 | ||||
| +		     )
 | ||||
| +	{
 | ||||
| +	  static char trans[NCHAR];
 | ||||
| +	  int i;
 | ||||
| +	  for (i = 0; i < lim - beg; i++)
 | ||||
| +	    ibeg[i] = tolower (beg[i]);
 | ||||
| +
 | ||||
| +	  while ((match_offset = (*execute) (ibeg, lim - beg, &match_size, 1))
 | ||||
| +		 != (size_t) -1)
 | ||||
| +	    {
 | ||||
| +	      char const *b = ibeg + match_offset;
 | ||||
| +	      if (b == lim)
 | ||||
| +		break;
 | ||||
| +	      if (match_size == 0)
 | ||||
| +		break;
 | ||||
| +	      if(color_option)
 | ||||
| +		printf("\33[%sm", grep_color);
 | ||||
| +	      fwrite(b, sizeof (char), match_size, stdout);
 | ||||
| +	      if(color_option)
 | ||||
| +		fputs("\33[00m", stdout);
 | ||||
| +	      fputs("\n", stdout);
 | ||||
| +	      ibeg = b + match_size;
 | ||||
| +	    }
 | ||||
| +	  free (buf);
 | ||||
| +	  lastout = lim;
 | ||||
| +	  if(line_buffered)
 | ||||
| +	    fflush(stdout);
 | ||||
| +	  return;
 | ||||
| +	  for (i = 0; i < NCHAR; ++i)
 | ||||
| +	    trans[i] = TOLOWER (i);
 | ||||
| +	  patterns[pcount].regexbuf.translate = trans;
 | ||||
| +	} 
 | ||||
|        while ((match_offset = (*execute) (beg, lim - beg, &match_size, 1)) | ||||
|  	  != (size_t) -1) | ||||
|          { | ||||
| +      // end patch
 | ||||
| +    
 | ||||
|        if ((err = re_compile_pattern (motif, len, | ||||
|  				    &(patterns[pcount].regexbuf))) != 0) | ||||
|  	error (2, 0, err); | ||||
| @@ -302,6 +317,21 @@
 | ||||
|  	error (2, errno, _("memory exhausted")); | ||||
|        patterns[pcount] = patterns0; | ||||
|   | ||||
| +      // patch ed@javabase.fsnet.co.uk
 | ||||
| +      if (match_icase
 | ||||
| +#ifdef MBS_SUPPORT
 | ||||
| +	  && MB_CUR_MAX == 1
 | ||||
| +#endif /* MBS_SUPPORT */
 | ||||
| +		     )
 | ||||
| +	{
 | ||||
| +	  static char trans[NCHAR];
 | ||||
| +	  int i;
 | ||||
| +	  for (i = 0; i < NCHAR; ++i)
 | ||||
| +	    trans[i] = TOLOWER (i);
 | ||||
| +	  patterns[pcount].regexbuf.translate = trans;
 | ||||
| +	} 
 | ||||
| +      // end patch
 | ||||
| +    
 | ||||
|        if ((err = re_compile_pattern (motif, len, | ||||
|  				    &(patterns[pcount].regexbuf))) != 0) | ||||
|  	error (2, 0, err); | ||||
|  | ||||
							
								
								
									
										16
									
								
								grep.spec
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								grep.spec
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | ||||
| %define beta %nil | ||||
| %define rel 17.2 | ||||
| %define rel 17.3 | ||||
| Summary: The GNU versions of grep pattern matching utilities. | ||||
| Name: grep | ||||
| Version: 2.5.1 | ||||
| @ -11,8 +11,8 @@ Release: %{rel} | ||||
| License: GPL | ||||
| Group: Applications/Text | ||||
| Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}%{beta}.tar.bz2 | ||||
| Patch0: grep-2.5.1-oi.patch | ||||
| Patch1: grep-2.5-i18n.patch | ||||
| Patch0: grep-2.5-i18n.patch | ||||
| Patch1: grep-2.5.1-oi.patch | ||||
| Patch2: grep-2.5.1-manpage.patch | ||||
| Patch3: grep-2.5.1-gofast.patch | ||||
| Patch4: grep-2.5.1-efgrep.patch | ||||
| @ -33,8 +33,8 @@ utility for searching through text. | ||||
| 
 | ||||
| %prep | ||||
| %setup -q -n %{name}-%{version}%{beta} | ||||
| %patch0 -p1 -b .oi | ||||
| %patch1 -p1 -b .i18n | ||||
| %patch0 -p1 -b .i18n | ||||
| %patch1 -p1 -b .oi | ||||
| %patch2 -p1 -b .manpage | ||||
| %patch3 -p1 -b .gofast | ||||
| %patch4 -p1 -b .efgrep | ||||
| @ -81,6 +81,12 @@ fi | ||||
| %{_mandir}/*/* | ||||
| 
 | ||||
| %changelog | ||||
| * Mon Dec 08 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-17.3 | ||||
| - Fixed -o -i properly (bug #111489). | ||||
| 
 | ||||
| * Sat Dec  6 2003 Tim Waugh <twaugh@redhat.com> | ||||
| - Another bug-fix for UTF-8 speed-up patch (bug #111614). | ||||
| 
 | ||||
| * Fri Nov 21 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-17.2 | ||||
| - Another two multibyte efficiency bug-fixes (bug #110524). | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user