From unknown Mon Aug 18 09:00:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17447: [PATCH] dfa: fix mismatch of exit conditions due to whether multibyte flag is on or off Resent-From: Norihiro Tanaka Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Fri, 09 May 2014 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17447 X-GNU-PR-Package: grep X-GNU-PR-Keywords: patch To: 17447@debbugs.gnu.org X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13996451563006 (code B ref -1); Fri, 09 May 2014 14:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2014 14:19:16 +0000 Received: from localhost ([127.0.0.1]:57033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wildr-0000mQ-Mo for submit@debbugs.gnu.org; Fri, 09 May 2014 10:19:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48251) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wildo-0000mC-Bk for submit@debbugs.gnu.org; Fri, 09 May 2014 10:19:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wilda-0002kD-Ig for submit@debbugs.gnu.org; Fri, 09 May 2014 10:19:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wilda-0002k9-G5 for submit@debbugs.gnu.org; Fri, 09 May 2014 10:18:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WildS-0002HF-Sw for bug-grep@gnu.org; Fri, 09 May 2014 10:18:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WildL-0002hN-5C for bug-grep@gnu.org; Fri, 09 May 2014 10:18:50 -0400 Received: from mailgw06.kcn.ne.jp ([61.86.7.213]:35908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WildK-0002gb-Sp for bug-grep@gnu.org; Fri, 09 May 2014 10:18:43 -0400 Received: from imp01 (mailgw5.kcn.ne.jp [61.86.15.231]) by mailgw06.kcn.ne.jp (Postfix) with ESMTP id 0CB61E80505 for ; Fri, 9 May 2014 23:18:37 +0900 (JST) Received: from mail06.kcn.ne.jp ([61.86.6.185]) by imp01 with bizsmtp id zqJc1n00h3zXHqt01qJcfz; Fri, 09 May 2014 23:18:36 +0900 X-OrgRCPT: bug-grep@gnu.org Received: from [10.120.1.47] (i118-21-128-66.s30.a048.ap.plala.or.jp [118.21.128.66]) by mail06.kcn.ne.jp (Postfix) with ESMTPA id B9E231BF0092 for ; Fri, 9 May 2014 23:18:36 +0900 (JST) Date: Fri, 09 May 2014 23:18:36 +0900 From: Norihiro Tanaka Message-Id: <20140509231832.75E5.27F6AC2D@kcn.ne.jp> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------_5368DFB600000000288A_MULTIPART_MIXED_" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.65.07 [ja] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --------_5368DFB600000000288A_MULTIPART_MIXED_ Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit When multibyte flag is on, exit condition is `p >= end'. OTOH, when off, it's `p > end'. I think that the later is right, and fix the former. --------_5368DFB600000000288A_MULTIPART_MIXED_ Content-Type: text/plain; charset="US-ASCII"; name="0001-dfa-fix-mismatch-of-exit-conditions-due-to-whether-m.patch" Content-Disposition: attachment; filename="0001-dfa-fix-mismatch-of-exit-conditions-due-to-whether-m.patch" Content-Transfer-Encoding: base64 RnJvbSAwNTJmNGI3YzY3MWJmZTUyMjFjYWY2ODdlODE5ZDYzNWQ5NTEzMTQ3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBOb3JpaGlybyBUYW5ha2EgPG5vcml0bmtAa2NuLm5lLmpwPgpE YXRlOiBGcmksIDkgTWF5IDIwMTQgMTU6Mjg6MzggKzA5MDAKU3ViamVjdDogW1BBVENIXSBkZmE6 IGZpeCBtaXNtYXRjaCBvZiBleGl0IGNvbmRpdGlvbnMgZHVlIHRvIHdoZXRoZXIgbXVsdGlieXRl CiBmbGFnIGlzIG9uIG9yIG9mZgoKKiBzcmMvZGZhLmMgKGRmYWV4ZWMpOiBGaXggaXQuCi0tLQog c3JjL2RmYS5jIHwgMiArLQogMSBmaWxlIGNoYW5nZWQsIDEgaW5zZXJ0aW9uKCspLCAxIGRlbGV0 aW9uKC0pCgpkaWZmIC0tZ2l0IGEvc3JjL2RmYS5jIGIvc3JjL2RmYS5jCmluZGV4IGZjNmNlNzIu LjJhMzI2ZTYgMTAwNjQ0Ci0tLSBhL3NyYy9kZmEuYworKysgYi9zcmMvZGZhLmMKQEAgLTMzMTgs NyArMzMxOCw3IEBAIGRmYWV4ZWMgKHN0cnVjdCBkZmEgKmQsIGNoYXIgY29uc3QgKmJlZ2luLCBj aGFyICplbmQsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZCAt IChjaGFyIGNvbnN0ICopIG1icCwgZCk7CiAgICAgICAgICAgICAgICAgICBwID0gbWJwOwogCi0g ICAgICAgICAgICAgICAgICBpZiAoKGNoYXIgKikgcCA+PSBlbmQpCisgICAgICAgICAgICAgICAg ICBpZiAoKGNoYXIgKikgcCA+IGVuZCkKICAgICAgICAgICAgICAgICAgICAgewogICAgICAgICAg ICAgICAgICAgICAgIHAgPSBOVUxMOwogICAgICAgICAgICAgICAgICAgICAgIGdvdG8gZG9uZTsK LS0gCjEuOS4yCgo= --------_5368DFB600000000288A_MULTIPART_MIXED_-- From unknown Mon Aug 18 09:00:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Norihiro Tanaka Subject: bug#17447: closed (Re: bug#17447: [PATCH] dfa: fix mismatch of exit conditions due to whether multibyte flag is on or off) Message-ID: References: <536D2FFD.7010807@cs.ucla.edu> <20140509231832.75E5.27F6AC2D@kcn.ne.jp> X-Gnu-PR-Message: they-closed 17447 X-Gnu-PR-Package: grep X-Gnu-PR-Keywords: patch Reply-To: 17447@debbugs.gnu.org Date: Fri, 09 May 2014 19:45:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1399664703-8417-1" This is a multi-part message in MIME format... ------------=_1399664703-8417-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17447: [PATCH] dfa: fix mismatch of exit conditions due to whether multiby= te flag is on or off which was filed against the grep package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17447@debbugs.gnu.org. --=20 17447: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17447 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1399664703-8417-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17447-done) by debbugs.gnu.org; 9 May 2014 19:44:07 +0000 Received: from localhost ([127.0.0.1]:57282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WiqiE-0002AJ-CF for submit@debbugs.gnu.org; Fri, 09 May 2014 15:44:06 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:42251) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WiqiB-00029f-Rt for 17447-done@debbugs.gnu.org; Fri, 09 May 2014 15:44:04 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id DDC16A6002C; Fri, 9 May 2014 12:43:57 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A1VE0V3GwNdp; Fri, 9 May 2014 12:43:57 -0700 (PDT) Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8B979A60024; Fri, 9 May 2014 12:43:57 -0700 (PDT) Message-ID: <536D2FFD.7010807@cs.ucla.edu> Date: Fri, 09 May 2014 12:43:57 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Norihiro Tanaka , 17447-done@debbugs.gnu.org Subject: Re: bug#17447: [PATCH] dfa: fix mismatch of exit conditions due to whether multibyte flag is on or off References: <20140509231832.75E5.27F6AC2D@kcn.ne.jp> In-Reply-To: <20140509231832.75E5.27F6AC2D@kcn.ne.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17447-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) Norihiro Tanaka wrote: > When multibyte flag is on, exit condition is `p >= end'. OTOH, when off, > it's `p > end'. I think that the later is right, and fix the former. Thanks, I installed that. ------------=_1399664703-8417-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 May 2014 14:19:16 +0000 Received: from localhost ([127.0.0.1]:57033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wildr-0000mQ-Mo for submit@debbugs.gnu.org; Fri, 09 May 2014 10:19:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48251) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wildo-0000mC-Bk for submit@debbugs.gnu.org; Fri, 09 May 2014 10:19:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wilda-0002kD-Ig for submit@debbugs.gnu.org; Fri, 09 May 2014 10:19:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wilda-0002k9-G5 for submit@debbugs.gnu.org; Fri, 09 May 2014 10:18:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WildS-0002HF-Sw for bug-grep@gnu.org; Fri, 09 May 2014 10:18:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WildL-0002hN-5C for bug-grep@gnu.org; Fri, 09 May 2014 10:18:50 -0400 Received: from mailgw06.kcn.ne.jp ([61.86.7.213]:35908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WildK-0002gb-Sp for bug-grep@gnu.org; Fri, 09 May 2014 10:18:43 -0400 Received: from imp01 (mailgw5.kcn.ne.jp [61.86.15.231]) by mailgw06.kcn.ne.jp (Postfix) with ESMTP id 0CB61E80505 for ; Fri, 9 May 2014 23:18:37 +0900 (JST) Received: from mail06.kcn.ne.jp ([61.86.6.185]) by imp01 with bizsmtp id zqJc1n00h3zXHqt01qJcfz; Fri, 09 May 2014 23:18:36 +0900 X-OrgRCPT: bug-grep@gnu.org Received: from [10.120.1.47] (i118-21-128-66.s30.a048.ap.plala.or.jp [118.21.128.66]) by mail06.kcn.ne.jp (Postfix) with ESMTPA id B9E231BF0092 for ; Fri, 9 May 2014 23:18:36 +0900 (JST) Date: Fri, 09 May 2014 23:18:36 +0900 From: Norihiro Tanaka To: bug-grep@gnu.org Subject: [PATCH] dfa: fix mismatch of exit conditions due to whether multibyte flag is on or off Message-Id: <20140509231832.75E5.27F6AC2D@kcn.ne.jp> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------_5368DFB600000000288A_MULTIPART_MIXED_" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.65.07 [ja] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --------_5368DFB600000000288A_MULTIPART_MIXED_ Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit When multibyte flag is on, exit condition is `p >= end'. OTOH, when off, it's `p > end'. I think that the later is right, and fix the former. --------_5368DFB600000000288A_MULTIPART_MIXED_ Content-Type: text/plain; charset="US-ASCII"; name="0001-dfa-fix-mismatch-of-exit-conditions-due-to-whether-m.patch" Content-Disposition: attachment; filename="0001-dfa-fix-mismatch-of-exit-conditions-due-to-whether-m.patch" Content-Transfer-Encoding: base64 RnJvbSAwNTJmNGI3YzY3MWJmZTUyMjFjYWY2ODdlODE5ZDYzNWQ5NTEzMTQ3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBOb3JpaGlybyBUYW5ha2EgPG5vcml0bmtAa2NuLm5lLmpwPgpE YXRlOiBGcmksIDkgTWF5IDIwMTQgMTU6Mjg6MzggKzA5MDAKU3ViamVjdDogW1BBVENIXSBkZmE6 IGZpeCBtaXNtYXRjaCBvZiBleGl0IGNvbmRpdGlvbnMgZHVlIHRvIHdoZXRoZXIgbXVsdGlieXRl CiBmbGFnIGlzIG9uIG9yIG9mZgoKKiBzcmMvZGZhLmMgKGRmYWV4ZWMpOiBGaXggaXQuCi0tLQog c3JjL2RmYS5jIHwgMiArLQogMSBmaWxlIGNoYW5nZWQsIDEgaW5zZXJ0aW9uKCspLCAxIGRlbGV0 aW9uKC0pCgpkaWZmIC0tZ2l0IGEvc3JjL2RmYS5jIGIvc3JjL2RmYS5jCmluZGV4IGZjNmNlNzIu LjJhMzI2ZTYgMTAwNjQ0Ci0tLSBhL3NyYy9kZmEuYworKysgYi9zcmMvZGZhLmMKQEAgLTMzMTgs NyArMzMxOCw3IEBAIGRmYWV4ZWMgKHN0cnVjdCBkZmEgKmQsIGNoYXIgY29uc3QgKmJlZ2luLCBj aGFyICplbmQsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZCAt IChjaGFyIGNvbnN0ICopIG1icCwgZCk7CiAgICAgICAgICAgICAgICAgICBwID0gbWJwOwogCi0g ICAgICAgICAgICAgICAgICBpZiAoKGNoYXIgKikgcCA+PSBlbmQpCisgICAgICAgICAgICAgICAg ICBpZiAoKGNoYXIgKikgcCA+IGVuZCkKICAgICAgICAgICAgICAgICAgICAgewogICAgICAgICAg ICAgICAgICAgICAgIHAgPSBOVUxMOwogICAgICAgICAgICAgICAgICAgICAgIGdvdG8gZG9uZTsK LS0gCjEuOS4yCgo= --------_5368DFB600000000288A_MULTIPART_MIXED_-- ------------=_1399664703-8417-1--