delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/24/17:49:19

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=rqXdX0
GgRm3In9mgxedZtUzrvwthmdDaB1l1M6dT5H12AFnL+ayk+2FTA0VAdSiQzy9+Ph
KK9bOchfqZqtQuhkGghPem7rakU0m7WhRhczAudGbwGcOGCqZWaXAkzM71wCb+Ac
olbpWi71Gca0QS9toZ+roZGEN1dWX5/SFe0wM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=KIKbKYS0+amy
H1xnS9gP/X+V33I=; b=SYsZScwJBT6nXd87Pg0+jJUhT3KYHsodhWzmOLe+s1mR
qM8HQ2aTMyMrpTu39fZ7AVLou0SgnIc0ojUWMW4HgRC90Pm4iCZaS724layL5XDb
u/lRTEro8aWYM3YYWUFlSbhCpZcfx83ib/y7HX4J36MhV7ehhUNxJJ3qrxdtsRY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: resqmta-po-09v.sys.comcast.net
Message-ID: <549B4258.5050509@redhat.com>
Date: Wed, 24 Dec 2014 15:46:48 -0700
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: grep treating my text files as binary!
References: <XnsA40D81CA1FAA8davidrayninfocouk AT 80 DOT 91 DOT 229 DOT 13>
In-Reply-To: <XnsA40D81CA1FAA8davidrayninfocouk@80.91.229.13>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes

--kBPKi9eHuVu9IM0p4wvsWFGAA4EF8IMH2
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 12/24/2014 05:45 AM, zzapper wrote:
> Binary file /c/intranet/note/note.html matches
>=20
> file note.html
> note.html: HTML document, Non-ISO extended-ASCII text, with CRLF line=20
> terminators
>=20
>=20
> I know I can iconv them but why is this suddenly happening I'm unaware of=
=20
> changing any of my settings??

You upgraded grep.  This is an intentional change in behavior in the
newest grep.  Work around it by using 'grep -a' or 'LC_ALL=3DC grep'.

Basically, the POSIX definition of a binary file includes any file that
is encoded incorrectly for the current locale, and since your current
locale is (probably) UTF-8 encoding, any file (such as note.html) that
assumes some other encoding (probably Latin-1 8-bit encoding) will be
treated as binary unless you request -a or change locales.

--=20
--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--kBPKi9eHuVu9IM0p4wvsWFGAA4EF8IMH2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJUm0JYAAoJEKeha0olJ0NqDBwIAIZZ/ZwLhEdSZmBESB+IJZhG
NZJTGG0btGCJ+xndbF+vTEsCadYyEyaEWrYBgkD+5yhvRoYaAl7SxEL4ROEteCT3
shrVV/17hQ1nRmM4/391Z0WV/+J+QBCdzGmPptLzLLFhueEthYf90U3gORt5YD2o
cyE3PW9Gjt8fMMb9+6pNfxiQvCsqpX9sXVFrhKZppMgsj3j2UyUZgN0nFMZSxJOB
3HhV6HFdRZaMJedSK211GrB31B5GNl7E8AVPXbZJ5w+FY0+W95G4tuq7UJUawu2Q
vAX9x+dGKupgITZ0r/CwS5cZYmHnm4BNJfLt5eUpcB4Gx+HRK6dBJZb1mgFysH0=
=pOpf
-----END PGP SIGNATURE-----

--kBPKi9eHuVu9IM0p4wvsWFGAA4EF8IMH2--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019