Subject: bug#22181: endless loop in grep 2.22

From: Paul Eggert <[email-masked]>
Date: Fri, 8 Jan 2016 08:50:24 -0800

On 01/07/2016 09:47 PM, Jim Meyering wrote:
> FAIL: encoding-error
> ====================
> ...
> --- exp 2016-01-07 21:39:42.018646618 -0800
> +++ out 2016-01-07 21:39:42.018646618 -0800
> @@ -1 +1 @@
> -Binary file in matches
> +Pedro P\xe9rez
> + fail=1

I can't reproduce that in Fedora 23 x86-64, which is using gcc 5.3.1 
20151207 (Red Hat 5.3.1-2).

One hypothetical explanation is a bug or incompatibility in the 
bleeding-edge Debian shell, which I suppose could cause 
require_en_utf8_locale_ to do the wrong thing (i.e., to fail to report 
that the en_US.UTF-8 locale is missing). You might check the output of 
the command './get-mb-cur-max en_US.UTF-8' when you have the time.