Subject: Re: bug#22059: grep -E: unexpected behaviour

From: Paul Eggert <[email-masked]>
Date: Mon, 30 Nov 2015 09:27:25 -0800

On 11/29/2015 08:57 PM, Charles wrote:
> Apparently grep silently stops processing when it encounters the invalid UTF-8:

The regular expression "." matches a single character, and ".*" matches 
a string of characters. In your example, there is an encoding error, and 
encoding errors are not characters so "." and ".*" do not match them. I 
don't see any bug here.

> When the input has invalid characters so grep cannot process it, a message could be expected

That's a good suggestion, yes.