From MAILER-DAEMON Tue Oct 04 15:46:21 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RBAwX-0001qE-Dz
	for mharc-grep-commit@gnu.org; Tue, 04 Oct 2011 15:46:21 -0400
Received: from eggs.gnu.org ([140.186.70.92]:55287)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RBAwU-0001pg-8V
	for grep-commit@gnu.org; Tue, 04 Oct 2011 15:46:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RBAwS-0004QM-Ut
	for grep-commit@gnu.org; Tue, 04 Oct 2011 15:46:18 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:49192)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RBAwS-0004QG-Rr
	for grep-commit@gnu.org; Tue, 04 Oct 2011 15:46:16 -0400
Received: from meyering by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <jim@meyering.net>) id 1RBAwQ-0007Us-S4
	for grep-commit@gnu.org; Tue, 04 Oct 2011 19:46:16 +0000
Date: Tue, 04 Oct 2011 19:46:15 +0000
Message-Id: <E1RBAwQ-0007Us-S4@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.9-60-g7d20c09
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 49684e05ed0362928b9fd2d14ecc3153300b702f
X-Git-Newrev: 7d20c09e3e7cf3af9060f395e884fca285ce3598
From: Jim Meyering <jim@meyering.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: bug-grep@gnu.org
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Oct 2011 19:46:19 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  7d20c09e3e7cf3af9060f395e884fca285ce3598 (commit)
      from  49684e05ed0362928b9fd2d14ecc3153300b702f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=7d20c09e3e7cf3af9060f395e884fca285ce3598


commit 7d20c09e3e7cf3af9060f395e884fca285ce3598
Author: Eli Zaretskii <eliz@gnu.org>
Date:   Sun Oct 2 21:33:53 2011 +0200

    dfa: don't mishandle high-bit bytes in a regexp with signed-char
    
    This appears to arise only on systems for which "char" is signed.
    * src/dfa.c (FETCH_WC, FETCH): Produce an unsigned value, rather
    than a sign-extended one.  Fixes a bug on MS-Windows with compiling
    patterns that include characters with the 8-th bit set.
    (to_uchar): Define.  From coreutils.
    Reported by David Millis <tvtronix@yahoo.com>.
    See http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3893
    * NEWS (Bug fixes): Mention it.

diff --git a/NEWS b/NEWS
index 8578e82..2b06af4 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,11 @@ GNU grep NEWS                                    -*- outline -*-
 
 * Noteworthy changes in release ?.? (????-??-??) [?]
 
+** Bug fixes
+
+  grep no longer mishandles high-bit-set pattern bytes on systems
+  where "char" is a signed type. [bug appears to affect only MS-Windows]
+
   grep now rejects a command like "grep -r pattern . > out",
   in which the output file is also one of the inputs,
   because it can result in an "infinite" disk-filling loop.
diff --git a/src/dfa.c b/src/dfa.c
index 8611435..dc87915 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -86,6 +86,11 @@
 /* Sets of unsigned characters are stored as bit vectors in arrays of ints. */
 typedef int charclass[CHARCLASS_INTS];
 
+/* Convert a possibly-signed character to an unsigned character.  This is
+   a bit safer than casting to unsigned char, since it catches some type
+   errors that the cast doesn't.  */
+static inline unsigned char to_uchar (char ch) { return ch; }
+
 /* Sometimes characters can only be matched depending on the surrounding
    context.  Such context decisions depend on what the previous character
    was, and the value of the current (lookahead) character.  Context
@@ -686,7 +691,7 @@ static unsigned char const *buf_end;	/* reference to end in dfaexec().  */
           {					\
             cur_mb_len = 1;			\
             --lexleft;				\
-            (wc) = (c) = (unsigned char) *lexptr++; \
+            (wc) = (c) = to_uchar (*lexptr++);  \
           }					\
         else					\
           {					\
@@ -715,7 +720,7 @@ static unsigned char const *buf_end;	/* reference to end in dfaexec().  */
         else			      \
           return lasttok = END;	      \
       }				      \
-    (c) = (unsigned char) *lexptr++;  \
+    (c) = to_uchar (*lexptr++);       \
     --lexleft;			      \
   } while(0)
 

-----------------------------------------------------------------------

Summary of changes:
 NEWS      |    5 +++++
 src/dfa.c |    9 +++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
grep


From MAILER-DAEMON Mon Oct 10 09:19:40 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RDFlc-0003dD-LR
	for mharc-grep-commit@gnu.org; Mon, 10 Oct 2011 09:19:40 -0400
Received: from eggs.gnu.org ([140.186.70.92]:60939)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RDFlZ-0003ca-9Z
	for grep-commit@gnu.org; Mon, 10 Oct 2011 09:19:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RDFlT-0002r1-P9
	for grep-commit@gnu.org; Mon, 10 Oct 2011 09:19:36 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:35133)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RDFlT-0002qx-Gp
	for grep-commit@gnu.org; Mon, 10 Oct 2011 09:19:31 -0400
Received: from meyering by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <jim@meyering.net>) id 1RDFlS-0000pZ-MP
	for grep-commit@gnu.org; Mon, 10 Oct 2011 13:19:31 +0000
Date: Mon, 10 Oct 2011 13:19:31 +0000
Message-Id: <E1RDFlS-0000pZ-MP@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.9-63-g88b29e5
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 7d20c09e3e7cf3af9060f395e884fca285ce3598
X-Git-Newrev: 88b29e577f08e223aec65020aef29e602afdb054
From: Jim Meyering <jim@meyering.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: bug-grep@gnu.org
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Oct 2011 13:19:38 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  88b29e577f08e223aec65020aef29e602afdb054 (commit)
       via  bdbf9f1ba21fda5ccd615f09086da6a4239df543 (commit)
       via  5db565f6681bab418a2e10de918d322c5a829623 (commit)
      from  7d20c09e3e7cf3af9060f395e884fca285ce3598 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=88b29e577f08e223aec65020aef29e602afdb054


commit 88b29e577f08e223aec65020aef29e602afdb054
Author: Stefano Lattarini <stefano.lattarini@gmail.com>
Date:   Mon Oct 10 14:32:25 2011 +0200

    gitignore: merge top-level and tests/ .gitignore files
    
    * tests/.gitignore: Remove; what little remained of its
    contents has been moved ...
    * .gitignore: ... here.

diff --git a/.gitignore b/.gitignore
index 03c253f..0aa84b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,6 +49,11 @@
 /tests/cspatfile
 /tests/get-mb-cur-max
 /tests/yesno.txt
+/tests/bre.script
+/tests/ere.script
+/tests/khadafy.out
+/tests/patfile
+/tests/spencer1.script
 ABOUT-NLS
 ChangeLog
 Makefile
diff --git a/tests/.gitignore b/tests/.gitignore
deleted file mode 100644
index ce503b6..0000000
--- a/tests/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bre.script
-ere.script
-khadafy.out
-patfile
-spencer1.script

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=bdbf9f1ba21fda5ccd615f09086da6a4239df543


commit 88b29e577f08e223aec65020aef29e602afdb054
Author: Stefano Lattarini <stefano.lattarini@gmail.com>
Date:   Mon Oct 10 14:32:25 2011 +0200

    gitignore: merge top-level and tests/ .gitignore files
    
    * tests/.gitignore: Remove; what little remained of its
    contents has been moved ...
    * .gitignore: ... here.

diff --git a/.gitignore b/.gitignore
index 03c253f..0aa84b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,6 +49,11 @@
 /tests/cspatfile
 /tests/get-mb-cur-max
 /tests/yesno.txt
+/tests/bre.script
+/tests/ere.script
+/tests/khadafy.out
+/tests/patfile
+/tests/spencer1.script
 ABOUT-NLS
 ChangeLog
 Makefile
diff --git a/tests/.gitignore b/tests/.gitignore
deleted file mode 100644
index ce503b6..0000000
--- a/tests/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bre.script
-ere.script
-khadafy.out
-patfile
-spencer1.script

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=5db565f6681bab418a2e10de918d322c5a829623


commit 88b29e577f08e223aec65020aef29e602afdb054
Author: Stefano Lattarini <stefano.lattarini@gmail.com>
Date:   Mon Oct 10 14:32:25 2011 +0200

    gitignore: merge top-level and tests/ .gitignore files
    
    * tests/.gitignore: Remove; what little remained of its
    contents has been moved ...
    * .gitignore: ... here.

diff --git a/.gitignore b/.gitignore
index 03c253f..0aa84b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,6 +49,11 @@
 /tests/cspatfile
 /tests/get-mb-cur-max
 /tests/yesno.txt
+/tests/bre.script
+/tests/ere.script
+/tests/khadafy.out
+/tests/patfile
+/tests/spencer1.script
 ABOUT-NLS
 ChangeLog
 Makefile
diff --git a/tests/.gitignore b/tests/.gitignore
deleted file mode 100644
index ce503b6..0000000
--- a/tests/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bre.script
-ere.script
-khadafy.out
-patfile
-spencer1.script

-----------------------------------------------------------------------

Summary of changes:
 .gitignore           |    6 ++++++
 build-aux/.gitignore |    1 +
 tests/.gitignore     |    5 -----
 tests/Makefile.am    |    6 ++++--
 4 files changed, 11 insertions(+), 7 deletions(-)
 delete mode 100644 tests/.gitignore


hooks/post-receive
-- 
grep


From MAILER-DAEMON Wed Oct 12 13:32:26 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RE2fK-0004Fp-89
	for mharc-grep-commit@gnu.org; Wed, 12 Oct 2011 13:32:26 -0400
Received: from eggs.gnu.org ([140.186.70.92]:52973)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RE2fI-0004F0-B4
	for grep-commit@gnu.org; Wed, 12 Oct 2011 13:32:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RE2fG-0007VQ-NQ
	for grep-commit@gnu.org; Wed, 12 Oct 2011 13:32:24 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:59367)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1RE2fG-0007VK-I7
	for grep-commit@gnu.org; Wed, 12 Oct 2011 13:32:22 -0400
Received: from meyering by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <jim@meyering.net>) id 1RE2fG-0006U0-5s
	for grep-commit@gnu.org; Wed, 12 Oct 2011 17:32:22 +0000
Date: Wed, 12 Oct 2011 17:32:22 +0000
Message-Id: <E1RE2fG-0006U0-5s@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.9-64-gfb205d2
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 88b29e577f08e223aec65020aef29e602afdb054
X-Git-Newrev: fb205d2ab461b45188d55e70957574af8533d58e
From: Jim Meyering <jim@meyering.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: bug-grep@gnu.org
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Oct 2011 17:32:25 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  fb205d2ab461b45188d55e70957574af8533d58e (commit)
      from  88b29e577f08e223aec65020aef29e602afdb054 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=fb205d2ab461b45188d55e70957574af8533d58e


commit fb205d2ab461b45188d55e70957574af8533d58e
Author: Jim Meyering <meyering@redhat.com>
Date:   Wed Oct 12 19:23:11 2011 +0200

    build: update gnulib submodule to latest
    
    This should fix a few portability problems, including one on HP-UX
    and a test-float failure on PPC, reported by Andreas Metzler.

diff --git a/.gitignore b/.gitignore
index 0aa84b5..74cae17 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,15 +45,15 @@
 /stamp-h1
 /tests/*.log
 /tests/*.trs
+/tests/bre.script
 /tests/csinput
 /tests/cspatfile
-/tests/get-mb-cur-max
-/tests/yesno.txt
-/tests/bre.script
 /tests/ere.script
+/tests/get-mb-cur-max
 /tests/khadafy.out
 /tests/patfile
 /tests/spencer1.script
+/tests/yesno.txt
 ABOUT-NLS
 ChangeLog
 Makefile
diff --git a/gnulib b/gnulib
index 0b88a15..2394a60 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 0b88a15dca93414df75ff004811c8e2573d593e3
+Subproject commit 2394a603e7586e671226478e5b15d924c3841f42

-----------------------------------------------------------------------

Summary of changes:
 .gitignore |    6 +++---
 gnulib     |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
grep


From MAILER-DAEMON Fri Oct 14 03:15:46 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1REbze-0000Ay-VD
	for mharc-grep-commit@gnu.org; Fri, 14 Oct 2011 03:15:46 -0400
Received: from eggs.gnu.org ([140.186.70.92]:35884)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1REbzc-0000As-BV
	for grep-commit@gnu.org; Fri, 14 Oct 2011 03:15:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1REbzb-0000rr-3n
	for grep-commit@gnu.org; Fri, 14 Oct 2011 03:15:44 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:34769)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1REbzb-0000rk-2E
	for grep-commit@gnu.org; Fri, 14 Oct 2011 03:15:43 -0400
Received: from meyering by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <jim@meyering.net>) id 1REbzT-00069N-Ra
	for grep-commit@gnu.org; Fri, 14 Oct 2011 07:15:40 +0000
Date: Fri, 14 Oct 2011 07:15:37 +0000
Message-Id: <E1REbzT-00069N-Ra@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.9-65-ge88a270
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: fb205d2ab461b45188d55e70957574af8533d58e
X-Git-Newrev: e88a270d07c56567a042899256abc5c4804fc9d8
From: Jim Meyering <jim@meyering.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: bug-grep@gnu.org
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Oct 2011 07:15:45 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  e88a270d07c56567a042899256abc5c4804fc9d8 (commit)
      from  fb205d2ab461b45188d55e70957574af8533d58e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=e88a270d07c56567a042899256abc5c4804fc9d8


commit e88a270d07c56567a042899256abc5c4804fc9d8
Author: Stefano Lattarini <stefano.lattarini@gmail.com>
Date:   Thu Oct 13 13:41:22 2011 +0200

    distcheck: ensure dist-hook fails if syntax-check fails
    
    * Makefile.am (run-syntax-check): Fix logic, to ensure that
    the recipe of this target returns a non-zero exit status if
    "make syntax-check" fails.

diff --git a/Makefile.am b/Makefile.am
index a13f262..e9005d7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,7 +31,7 @@ EXTRA_DIST =		\
 # Run syntax-check rules before creating a distribution tarball.
 .PHONY: run-syntax-check
 run-syntax-check:
-	$(AM_V_GEN)test -d .git && $(MAKE) syntax-check || :
+	$(AM_V_GEN)test ! -d .git || $(MAKE) syntax-check
 
 # Arrange so that .tarball-version appears only in the distribution
 # tarball, and never in a checked-out repository.

-----------------------------------------------------------------------

Summary of changes:
 Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
grep


