On Fri, Dec 13, 2013 at 10:33 AM, Jim Meyering wrote: ... > Thanks for the suggested patches and report. Your first patch is > almost right. The problem is that we cannot remove the PCRE_UTF8 flag. > If we did that, it would disable UTF-8, reverting an older fix. > See tests/pcre-utf8 for examples, or run this: > > printf '\342\202\254\n' | LC_ALL=en_US.UTF-8 src/grep -P '^\p{S}' > > I've added a commit log, improved a related test and attached > a slightly different patch, but left you as the "Author". > I'll wait for an explicit ACK before pushing it. > > With that, there is no need to handle PCRE_ERROR_BADUTF8 > because that should not happen. Patch attached, this time. Thanks to Eric Blake for the quick off-list prod :-)