gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, master, updated. gawk-4.1.0-5377-g59c3b370


From: Arnold Robbins
Subject: [SCM] gawk branch, master, updated. gawk-4.1.0-5377-g59c3b370
Date: Tue, 17 Oct 2023 13:08:55 -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, master has been updated
       via  59c3b370a16e84203588cb35479add41ad2514ec (commit)
      from  55111e81288a740ef7e7f904ff8fd6b80982f41f (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=59c3b370a16e84203588cb35479add41ad2514ec

commit 59c3b370a16e84203588cb35479add41ad2514ec
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Tue Oct 17 20:08:28 2023 +0300

    Small fix in re.c:make_regexp.

diff --git a/ChangeLog b/ChangeLog
index df2855e2..a4d15075 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-10-17         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * re.c (make_regexp): Fix setting ok_to_escape.
+
 2023-10-15         Arnold D. Robbins     <arnold@skeeve.com>
 
        * NEWS: Editing, in preparation for release.
diff --git a/re.c b/re.c
index 678d0e52..a4d325a3 100644
--- a/re.c
+++ b/re.c
@@ -235,10 +235,8 @@ make_regexp(const char *s, size_t len, bool ignorecase, 
bool dfa, bool canfatal)
                         * neither does ok_to_escape.
                         */
                        if (ok_to_escape == NULL) {
-                               if (do_posix)
+                               if (do_posix || do_traditional)
                                        ok_to_escape = "{}()|*+?.^$\\[]/-";
-                               else if (do_traditional)
-                                       ok_to_escape = "()|*+?.^$\\[]/-";
                                else
                                        ok_to_escape = 
"<>`'BywWsS{}()|*+?.^$\\[]/-";
                        }

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

Summary of changes:
 ChangeLog | 4 ++++
 re.c      | 4 +---
 2 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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