GNU bug report logs - #30326
grep not searching through a text file (thinking it binary)

Previous Next

Package: grep;

Reported by: "L. A. Walsh" <gnu <at> tlinx.org>

Date: Fri, 2 Feb 2018 19:31:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: L A Walsh <gnu <at> tlinx.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 30326-done <at> debbugs.gnu.org
Subject: bug#30326: grep not searching through a text file (thinking it binary)
Date: Fri, 02 Feb 2018 15:30:37 -0800

Paul Eggert wrote:
> On 02/02/2018 03:16 PM, L A Walsh wrote:
>   
>> It also used to be the default.
>>     
>
> Single-byte locales also used to be the default. Times have changed, and 
> things have gotten more complicated. We don't change default behavior 
> for no reason, but we also don't keep the default the same even when the 
> world has changed and another default behavior would typically be better.
>   
But most computer files (vs. user-files) are still single-byte.

Even UTF-8 is mostly single byte, though treating it as a text-stream
works most of the time -- unless the user specifies a character above
0x7e.

I more often use a search in a GUI for user-based files.






This bug report was last modified 7 years and 34 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.