Subject: bug#19241: closed (Re: bug#19241: latest grep considers text files as binary)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 01 Dec 2014 17:54:02 +0000

Your bug report

#19241: latest grep considers text files as binary

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19241: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19241
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#19241: latest grep considers text files as binary
From: Jim Meyering <[email-masked]>
To: Paul Eggert <[email-masked]>
Cc: Jim Meyering <[email-masked]>, [email-masked], [email-masked]
Date: Mon, 1 Dec 2014 09:53:01 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

On Mon, Dec 1, 2014 at 9:29 AM, Paul Eggert <[email-masked]> 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.

Subject: Re: latest grep considers text files as binary
From: Paul Eggert <[email-masked]>
To: Thomas Wolff <[email-masked]>, [email-masked]
Cc: [email-masked], [email-masked]
Date: Mon, 01 Dec 2014 09:29:15 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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'.