From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: `grep' command on MS Windows with Cygwin, looking for text with Unicode chars Date: Wed, 13 Jun 2018 11:23:47 -0700 (PDT) Message-ID: <356e7bf9-3f93-448c-a067-f6b567d5aa5a@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528914715 2379 195.159.176.226 (13 Jun 2018 18:31:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2018 18:31:55 +0000 (UTC) To: "help-gnu-emacs@gnu.org List" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 20:31:51 2018 Return-path: Envelope-to: geh-help-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 1fTAYh-0000Uv-G9 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 20:31:51 +0200 Original-Received: from localhost ([::1]:36256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTAao-0007bU-D7 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 14:34:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTAR2-0007dN-3m for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 14:23:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTAQx-0005e0-7R for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 14:23:56 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:34822) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTAQw-0005bE-VE for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 14:23:51 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5DIJ9eu026428 for ; Wed, 13 Jun 2018 18:23:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=Ysxo2Cjap+1/oQeOEQ4b1txwsWYPEVuGCZgB5stKJ0w=; b=JrSluSSxdSQibNtflyIO3V7pRBX3VcagE/UqUjC05fcU26bov3Dg6lPGoD3ymZHobHPG lUnlnbOpRINMoZIOMf5fpYA0OZM1D4mZhozEoxSrwn4hpyPpIpINJE0/mjzu4YpKZf4N yEosZdbrvOEUgeRyIdgWHZojM5OYksPACBs3Ae1HJUTOp7LfLfsGRIPcE5Qn0e+tOQs0 Q/6aN8MwXY4BjajlTSS2Fci2ilGPFLmdgT13wIApTPhzQi2MdQZGCetDXHM3qVi7kXmH Vga+y0H4GSVeHCnbCN4SVpCpKugu8pYmjNv3MKc7b/gx4E7wVSGS0tnL3lvY0Kr0sLuX 5w== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2jk0xqswxq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 13 Jun 2018 18:23:49 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5DINnSI017887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 13 Jun 2018 18:23:49 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5DINmxG008095 for ; Wed, 13 Jun 2018 18:23:49 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4690.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8923 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=644 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806130195 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.79 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117139 Archived-At: Is there a simple way to use `M-x grep' (e.g., giving it some switches or escape chars or replacing them with hex escapes or...) to search for some text that includes non-ASCII Unicode chars? [I'm using (an old) Cygwin `grep'. Dunno whether that matters.] I tried to look for "'%s'" (curly-quote) in the Emacs source code. E.g., in `info.el' we now have this: (format "Index for '%s'" string) instead of this: (format "Index for `%s'" string) I wanted to see if this kind of change was spread to other files. I tried things like "\\x2018%s\\x2019", with no luck. Is there a simple approach that uses only `M-x grep' and not, say, piping the result of iconv to grep? I ended up doing the search using Icicles, but I'd like to be able to do such a search also using just `grep' (or `rgrep' etc.).