GNU bug report logs - #62267
grep-3.9 bug: \d matches multibyte digits

Previous Next

Package: grep;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Sun, 19 Mar 2023 00:07:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>
Cc: 62267 <at> debbugs.gnu.org
Subject: bug#62267: grep-3.9 bug: \d matches multibyte digits
Date: Sun, 19 Mar 2023 01:54:53 -0700
[Message part 1 (text/plain, inline)]
On 2023-03-19 01:28, Paul Eggert wrote:
> Looking at the source code again, how about if we move the PCRE-specific 
> changes from src/grep.c to src/pcresearch.c which is where it really 
> belongs, and more importantly use the bleeding-edge 
> PCRE2_EXTRA_ASCII_BSD macro if available?
> 
> Something like the attached patch, say. This patch doesn't take your \D 
> fixes (or the above suggestions) into account.

Oops, that patch assumed match_lines. Also, it covered two topics in the 
doc fix. I installed the obvious topic in the doc change, and removed 
the match_lines assumption. Revised patch attached; please ignore the 
patch of a half-hour ago.
[0001-grep-forward-port-to-PCRE2-10.43.patch (text/x-patch, attachment)]

This bug report was last modified 2 years and 143 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.