gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5420-gcf1bfd81


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/minrx, updated. gawk-4.1.0-5420-gcf1bfd81
Date: Sun, 22 Oct 2023 13:03:19 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, feature/minrx has been updated
       via  cf1bfd813fca092af5cbc04bf3510e0306e6d8b5 (commit)
      from  865990210ba9b809f58392526d76a2b0ed89343d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=cf1bfd813fca092af5cbc04bf3510e0306e6d8b5

commit cf1bfd813fca092af5cbc04bf3510e0306e6d8b5
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Sun Oct 22 20:03:01 2023 +0300

    Fix gsub.

diff --git a/builtin.c b/builtin.c
index f3e1396a..6fc2d81a 100644
--- a/builtin.c
+++ b/builtin.c
@@ -3291,7 +3291,9 @@ do_sub(int nargs, unsigned int flags)
 
                if ((current >= how_many && ! global)
                    || ((long) textlen <= 0 && matchstart == matchend)
-                   || research(rp, target->stptr, text - target->stptr, 
textlen, RE_NEED_START) == -1)
+                   || research(rp, target->stptr, text - target->stptr,
+                           use_gnu_matchers ? textlen : target->stlen,
+                           RE_NEED_START) == -1)
                        break;
 
        }

-----------------------------------------------------------------------

Summary of changes:
 builtin.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

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