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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19241 in the body.
You can then email your comments to 19241 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#19241; Package grep. (Mon, 01 Dec 2014 17:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Eggert <eggert <at> cs.ucla.edu>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Mon, 01 Dec 2014 17:30:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Thomas Wolff <towo <at> computer.org>, bug-grep <at> gnu.org
Cc: meyering <at> fb.com, noritnk <at> kcn.ne.jp
Subject: Re: 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'.




Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Mon, 01 Dec 2014 17:54:02 GMT) Full text and rfc822 format available.

Notification sent to Paul Eggert <eggert <at> cs.ucla.edu>:
bug acknowledged by developer. (Mon, 01 Dec 2014 17:54:02 GMT) Full text and rfc822 format available.

Message #10 received at 19241-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Jim Meyering <meyering <at> fb.com>, towo <at> computer.org,
 19241-done <at> debbugs.gnu.org
Subject: Re: bug#19241: latest grep considers text files as binary
Date: Mon, 1 Dec 2014 09:53:01 -0800
On Mon, Dec 1, 2014 at 9:29 AM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> 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'.

tags 19241 notabug
close 19241
thanks

Thanks for the report, but as you've seen (thanks, Paul), this is due
to documented and desirable behavior.  The above marks this
auto-created issue as a non-bug in our tracker.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 30 Dec 2014 12:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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