From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: `grep' command on MS Windows with Cygwin, looking for text with Unicode chars Date: Wed, 13 Jun 2018 17:09:02 -0600 Message-ID: <20180613165924726126400@bob.proulx.com> References: <356e7bf9-3f93-448c-a067-f6b567d5aa5a@default> <83y3fi33or.fsf@gnu.org> <27454117-5bab-43ce-9bf3-d9e4ac5f2219@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1528931254 19830 195.159.176.226 (13 Jun 2018 23:07:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2018 23:07:34 +0000 (UTC) User-Agent: Mutt/1.10.0 (2018-05-17) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 14 01:07:30 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 1fTErS-00051x-E3 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jun 2018 01:07:30 +0200 Original-Received: from localhost ([::1]:37247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTEtZ-0008Vc-IC for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 19:09:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTEt2-0008TU-DM for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 19:09:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTEsz-0004Ap-7m for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 19:09:08 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:50834) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTEsz-00047h-1S for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 19:09:05 -0400 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 5DF1816D3 for ; Wed, 13 Jun 2018 17:09:03 -0600 (MDT) Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 3023E2125A for ; Wed, 13 Jun 2018 17:09:03 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 170362DC75; Wed, 13 Jun 2018 17:09:02 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <27454117-5bab-43ce-9bf3-d9e4ac5f2219@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 96.88.95.61 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:117156 Archived-At: Drew Adams wrote: > Since Emacs otherwise supports Unicode so well now, it will be > natural that some users will mistakenly expect `M-x grep' to DTRT > here. Depending upon what you are wanting to do I might mention that emacs dired can be very powerful here. I am often doing C-x d to start dired. Then using: C-x d RET ;; open directory dired % g REGEXP ;; mark all files containing pattern Q REGEXP TO ;; Perform query-replace-regexp on marked files If nothing else then % g is a native emacs way to search contents of files and should handle unicode as well as for other tasks. And for work within a single buffer there is M-x occur too. Bob