bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22059: grep -E: unexpected behaviour


From: Paul Eggert
Subject: bug#22059: grep -E: unexpected behaviour
Date: Mon, 30 Nov 2015 09:27:25 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]