emacs-devel
[Top][All Lists]
Advanced

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

Re: dired-do-find-regexp failure with latin-1 encoding


From: Stephen Berman
Subject: Re: dired-do-find-regexp failure with latin-1 encoding
Date: Sun, 29 Nov 2020 16:36:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Sun, 29 Nov 2020 22:14:51 +0700 Yuri Khan <yuri.v.khan@gmail.com> wrote:

> On Sun, 29 Nov 2020 at 22:07, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> We don't.  I still hope to understand why -a was needed in this case.
>
> The grep manual says it considers files to be binary if it encounters
> byte sequences that are not valid text encoded in the locale’s
> encoding.

I guess that's the reason.  The files in question are xhtml files, each
beginning with <?xml version="1.0" encoding="iso-8859-1"?>.  Emacs
displays them in XHTML+ mode.  As I noted, my locale is en_US.UTF-8.  I
guess grep doesn't grok iso-8859-1 in that locale, but with -a can at
least find ascii matches.

Steve Berman



reply via email to

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