From unknown Sun Aug 17 22:01:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17447 <17447@debbugs.gnu.org> To: bug#17447 <17447@debbugs.gnu.org> Subject: Status: [PATCH] dfa: fix mismatch of exit conditions due to whether multibyte flag is on or off Reply-To: bug#17447 <17447@debbugs.gnu.org> Date: Mon, 18 Aug 2025 05:01:52 +0000 retitle 17447 [PATCH] dfa: fix mismatch of exit conditions due to whether m= ultibyte flag is on or off reassign 17447 grep submitter 17447 Norihiro Tanaka severity 17447 normal tag 17447 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri May 09 10:19:16 2014 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_-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 09 15:44:06 2014 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. From unknown Sun Aug 17 22:01:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 07 Jun 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator