On Fri, Dec 18, 2015 at 1:50 PM, Paul Eggert wrote: > On 12/18/2015 12:52 PM, Jim Meyering wrote: >> >> And here is the patch that will form the basis of a complete fix: > > Thanks for looking into that; you beat me to it! > > POSIX says grep has undefined behavior when given an encoding error, and > looping forever sure fills the bill :-). :-) Here is the patch I expect to push tomorrow. I am using the occasion of this reply to close the bug report by inserting "-done" in the bug email address. Any reply will still go both to the mailing list and to the bug-tracking system.