unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tomas Nordin <tomasn@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org
Subject: Re: `grep' command on MS Windows with Cygwin, looking for text with Unicode chars
Date: Wed, 13 Jun 2018 21:43:52 +0200	[thread overview]
Message-ID: <87wov28oav.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <83y3fi33or.fsf@gnu.org>

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Wed, 13 Jun 2018 11:23:47 -0700 (PDT)
>> From: Drew Adams <drew.adams@oracle.com>
>> 
>> 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



  reply	other threads:[~2018-06-13 19:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-13 18:23 `grep' command on MS Windows with Cygwin, looking for text with Unicode chars Drew Adams
2018-06-13 18:40 ` Óscar Fuentes
2018-06-13 19:09   ` Drew Adams
2018-06-13 19:16   ` Noam Postavsky
2018-06-13 19:22     ` Noam Postavsky
2018-06-13 19:28       ` Drew Adams
2018-06-13 19:26     ` Drew Adams
2018-06-13 19:08 ` Eli Zaretskii
2018-06-13 19:43   ` Tomas Nordin [this message]
2018-06-14  2:33     ` Eli Zaretskii
2018-06-14  2:40       ` Eli Zaretskii
     [not found] <<356e7bf9-3f93-448c-a067-f6b567d5aa5a@default>
     [not found] ` <<83y3fi33or.fsf@gnu.org>
2018-06-13 19:16   ` Drew Adams
2018-06-13 19:42     ` Eli Zaretskii
2018-06-13 23:09     ` Bob Proulx
2018-06-13 23:37       ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wov28oav.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me \
    --to=tomasn@posteo.net \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).