help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `grep' command on MS Windows with Cygwin, looking for text with Unic


From: Óscar Fuentes
Subject: Re: `grep' command on MS Windows with Cygwin, looking for text with Unicode chars
Date: Wed, 13 Jun 2018 20:40:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

> 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.).

If there is a method, I'll like to know as well. This is the main reason
why I don't use Unicode in my source files.

(I investigated the matter the last year, on this ml and on the
Internet. My conclusion was negative, at least for UTF-8).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]