bug-grep
[Top][All Lists]
Advanced

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

bug#22838: New 'Binary file' detection considered harmful


From: Bruce Dubbs
Subject: bug#22838: New 'Binary file' detection considered harmful
Date: Mon, 29 Feb 2016 20:24:34 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39

Paul Eggert wrote:

$ printf '\200\n' | LC_ALL=C grep .
Binary file (standard input) matches

This is because the C locale is pure ASCII on these platforms, i.e.,
'\200' is not a valid character the way it is with traditional Unix.  I
don't know why Red Hat made that change.

I also get the 'Binary file (standard input) matches' output from the above string on a Linux From Scratch system. We build everything in a fairly generic way and did nothing special in this area. I suspect this is something buried deep into glibc.

  -- Bruce







reply via email to

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