This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 12/24/2014 05:45 AM, zzapper wrote: > Binary file /c/intranet/note/note.html matches > > file note.html > note.html: HTML document, Non-ISO extended-ASCII text, with CRLF line > terminators > > > I know I can iconv them but why is this suddenly happening I'm unaware of > 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=C 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. -- -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |