gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5491-gf4b9d38f


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5491-gf4b9d38f
Date: Sat, 20 Jul 2024 15:48:14 -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, gawk-5.3-stable has been updated
       via  f4b9d38fb07def1c9caef1123fc0ffc182de4c33 (commit)
      from  8d55806d3b7853a93c2aa76b94bc8640758bd8b5 (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=f4b9d38fb07def1c9caef1123fc0ffc182de4c33

commit f4b9d38fb07def1c9caef1123fc0ffc182de4c33
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Sat Jul 20 22:47:56 2024 +0300

    Small fix in csvscan.

diff --git a/ChangeLog b/ChangeLog
index 5aceaec5..4c0bed37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-07-20         Tim Rice              <trice@posteo.net>
+
+       * io.c (csvscan): Set the sentinel if we found CR-LF.
+
 2024-07-02         Arnold D. Robbins     <arnold@skeeve.com>
 
        * re.c (make_regexp): \u escapes also now treated literally
diff --git a/io.c b/io.c
index bb24dca7..acb707b0 100644
--- a/io.c
+++ b/io.c
@@ -3863,6 +3863,7 @@ csvscan(IOBUF *iop, struct recmatch *recm, SCANSTATE 
*state)
                        // convert CR-LF to LF by shifting the record
                        memmove(bp - 1, bp, iop->dataend - bp);
                        iop->dataend--;
+                       *(iop->dataend) = rs;   /* set sentinel */
                        bp--;
                }
        } while (in_quote && bp < iop->dataend && bp++);

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

Summary of changes:
 ChangeLog | 4 ++++
 io.c      | 1 +
 2 files changed, 5 insertions(+)


hooks/post-receive
-- 
gawk



reply via email to

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