From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.help Subject: Re: `grep' command on MS Windows with Cygwin, looking for text with Unicode chars Date: Wed, 13 Jun 2018 21:43:52 +0200 Message-ID: <87wov28oav.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> References: <356e7bf9-3f93-448c-a067-f6b567d5aa5a@default> <83y3fi33or.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528918942 24952 195.159.176.226 (13 Jun 2018 19:42:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2018 19:42:22 +0000 (UTC) To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 21:42:18 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 1fTBes-0006Ne-2J for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 21:42:18 +0200 Original-Received: from localhost ([::1]:36584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTBgz-0004Bv-8x for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 15:44:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTBgX-0004B9-NT for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 15:44:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTBgT-0005HF-P9 for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 15:44:01 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:37258) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTBgT-0005Eb-ET for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 15:43:57 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 004A621155 for ; Wed, 13 Jun 2018 21:43:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1528919035; bh=U456vobs735zNuXdmMUIIz57BmeL3mxW5s9JK+8TbqE=; h=From:To:Subject:Date:From; b=HMpq7uxZ2Pm+Jm4G5Jbmyi2bhRduyGT5eKWEGYhP/TFAlkwNZWJjqHzW6Tbk3x4rX ZMCWQ06mvwmYfz5Q+yG8lKIGQSEUo03dhR11uIgS503WjwfZ8nc8WyJgYCDutIzxPV Vqa6rGVNWBRv/zbwbn8fAh5Jhlv9lcAu02RQRyS+DnBvYjiScOppjJRmOl7W3/jl0V jT3d53Q60LUYX5scXAHme7Kxt2XcEs7/07zS9CRAi5t8c7XClUp4hxGfqZTFnpc7W0 H1gTVrlok/IJzH5tN7cDAwk83ngzGXe1ozeP/upAAPKtI5K9u0f1g1SprH9P/ihrZE 6CZmogXvFRPoA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 415cd62CZRz9rxY; Wed, 13 Jun 2018 21:43:54 +0200 (CEST) In-Reply-To: <83y3fi33or.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.65 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:117151 Archived-At: Eli Zaretskii writes: >> Date: Wed, 13 Jun 2018 11:23:47 -0700 (PDT) >> From: Drew Adams >> >> 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? > > Not on MS-Windows with the native Windows build of Emacs, AFAIK. I > think you will need a Cygwin build of Emacs for that, and perhaps also > a newer Cygwin Grep. > > Emacs on Windows cannot invoke subprograms with command-line arguments > encoded in anything but the system codepage. And Windows doesn't > support UTF-8 as the system codepage. Sorry. Sorry for a naive question, but the "system codepage" or "current system codepage" wording is used now and then in relation to non-ascii problems on Windows. If on Windows, what is a good way to figure out the current system codepage? -- Tomas