GNU bug report logs - #19241
latest grep considers text files as binary

Previous Next

Package: grep;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Mon, 1 Dec 2014 17:30:04 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: towo <at> computer.org, 19241 <at> debbugs.gnu.org
Cc: meyering <at> fb.com, noritnk <at> kcn.ne.jp
Subject: bug#19241: latest grep considers text files as binary
Date: Mon, 01 Dec 2014 09:29:15 -0800
On 12/01/2014 09:05 AM, Thomas Wolff wrote:
> the mentioned patches are apparently intended to fix
> issues in non-UTF-8 locales.

No, they're also needed for UTF-8 locales I'm afraid.  There are some 
security issues, not only having to do with grep's internals, but also 
for the behavior of downstream programs that may be expecting UTF-8 text.

You can work around the problem with 'grep -a'.




This bug report was last modified 10 years and 175 days ago.

Previous Next


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