From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#32051: 26.1; grep-regexp-alist on windows Date: Mon, 9 Jul 2018 17:08:29 -0400 Message-ID: References: <65653506844b4308957893b429dea091@chihq-post2.XRTRADING.LOCAL> <83in5vnf0s.fsf@gnu.org> <834lhcn3v7.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000005fa1350570976adb" X-Trace: blaine.gmane.org 1531170458 14056 195.159.176.226 (9 Jul 2018 21:07:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2018 21:07:38 +0000 (UTC) Cc: 32051@debbugs.gnu.org, Dan Harms To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 23:07:34 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcdNd-0003Z9-VB for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 23:07:34 +0200 Original-Received: from localhost ([::1]:44412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcdPk-0002lX-S4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 17:09:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcdP9-0002R4-Gs for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 17:09:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcdP4-0006lm-Jn for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 17:09:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44911) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcdP4-0006le-FK for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 17:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fcdP4-0004EZ-AL for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 17:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jul 2018 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32051-submit@debbugs.gnu.org id=B32051.153117051816224 (code B ref 32051); Mon, 09 Jul 2018 21:09:02 +0000 Original-Received: (at 32051) by debbugs.gnu.org; 9 Jul 2018 21:08:38 +0000 Original-Received: from localhost ([127.0.0.1]:52801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcdOg-0004Dc-Ga for submit@debbugs.gnu.org; Mon, 09 Jul 2018 17:08:38 -0400 Original-Received: from mail-oi0-f48.google.com ([209.85.218.48]:44681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcdOe-0004DP-80 for 32051@debbugs.gnu.org; Mon, 09 Jul 2018 17:08:36 -0400 Original-Received: by mail-oi0-f48.google.com with SMTP id s198-v6so38552727oih.11 for <32051@debbugs.gnu.org>; Mon, 09 Jul 2018 14:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HmGiZdY4vrOiZD9GYspFR45/+im6gcK8S02aehG0gMY=; b=n/P5r/MN14mYRo5zGZQovMbiWIMzyu3fYS2kfgAMhvWhVvevhp5UlEe4/Dea0Lg9xE ePtPn1tAAzmzvg1XOZo1dGMoqPK+504Bz6L6xbLwsrgeKSjgp1nC8ALBYEb+56+z04N5 5BuSOUb4sesZrG+g+QTS6lmPPXQCXC78up/RPoz0IlIgkk1AeF6qs04CMma1qr85m3gK kx2xXMql5st0JsUBg/7AX2T4DXRJAkmHc6I5cRIf5Vtnln67TVOTkP1oHST+xBkRR8gU qutQyL34KLhqvX5aJjlMnoGPhOtUEDdlbgJqxZiibTZuFcWy+2MVM9/Y6B2e0p+1StT7 5l7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HmGiZdY4vrOiZD9GYspFR45/+im6gcK8S02aehG0gMY=; b=IUfSvLUUHrCuLAsgX/KQAtpC8mM9075TakOMYMfeajjn1dqL0hdoJE8wWOxB9khyB8 acGX4RuyEdYYTxe4AhXSmFsWqMyaBKoqazAgb3/7jpUDQkrlKaTqaFqxi/dgAGOxd9kQ j/pYL6NCMme0ueI8nD78gbtnQ2yDfgf9ceNIFkhW23akQ8fQwV8KgBGIjh703V6MoumV 0mPj4Sc2hXxvGAweyujdEATr+qChY6B4uLYE2nlNada+R3p+K5KqUxmbIZzHKMMSZiZE afcnobl1BYLxpBM6hQyWa6/jk7//9E0oc4uIqWVTshPnF58LdE/vq8B5nf4oEaiwVxc7 Jmmg== X-Gm-Message-State: APt69E30s6iX4mvFA3V2Ac++Q3HJqgs30cPKJ506uqNo/YpjrdNKPwI1 +0NbQyywTXk8QWDUYmAiC+AAr6h7JNJkLHAE2oc= X-Google-Smtp-Source: AAOMgpfgSlTaNAvR6UbcKju91Fo0vS1lepqB9dKXrsg4e3qcZfGphQGkz0h2bE5s1tvWPQXnFb8c+PtyuUdpGvxCoXQ= X-Received: by 2002:aca:d9c5:: with SMTP id q188-v6mr23083145oig.239.1531170510518; Mon, 09 Jul 2018 14:08:30 -0700 (PDT) Original-Received: by 2002:a4a:3b8d:0:0:0:0:0 with HTTP; Mon, 9 Jul 2018 14:08:29 -0700 (PDT) In-Reply-To: <834lhcn3v7.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148393 Archived-At: --0000000000005fa1350570976adb Content-Type: text/plain; charset="UTF-8" On 6 July 2018 at 04:51, Eli Zaretskii wrote: > Looks reasonable. Can we have a test for this use case, so that we > never again regress like that? Sure, here's a full patch with testcases. --0000000000005fa1350570976adb Content-Type: application/octet-stream; name="v1-0001-Match-w32-paths-in-grep-sans-null-hits-Bug-32051.patch" Content-Disposition: attachment; filename="v1-0001-Match-w32-paths-in-grep-sans-null-hits-Bug-32051.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jjer9g9c0 RnJvbSAwY2FjNjkzOGY0ZmEyYjQ1M2E0ZWQ1ZDFjYzE3YTA4MmE3ZWNmMjg5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBOb2FtIFBvc3RhdnNreSA8bnBvc3RhdnNAZ21haWwuY29tPgpE YXRlOiBNb24sIDkgSnVsIDIwMTggMTY6NTY6NDcgLTA0MDAKU3ViamVjdDogW1BBVENIIHYxXSBN YXRjaCB3MzIgcGF0aHMgaW4gZ3JlcCBzYW5zIC0tbnVsbCBoaXRzIChCdWcjMzIwNTEpCgoqIGxp c3AvcHJvZ21vZGVzL2dyZXAuZWwgKGdyZX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