gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-576


From: Andrew J. Schorr
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-576-g1736b4d
Date: Thu, 05 Feb 2015 14:53:58 +0000

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-4.1-stable has been updated
       via  1736b4db53dc60f1e7a9659dc201e0562d43aa02 (commit)
      from  1e4b9e300f6bfb84e3187ba2085723d44af9c50f (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=1736b4db53dc60f1e7a9659dc201e0562d43aa02

commit 1736b4db53dc60f1e7a9659dc201e0562d43aa02
Author: Andrew J. Schorr <address@hidden>
Date:   Thu Feb 5 09:53:05 2015 -0500

    Setting -v IGNORECASE=0 on the command line should now work properly.

diff --git a/ChangeLog b/ChangeLog
index 6f626cd..f8cd101 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-02-05         Andrew J. Schorr     <address@hidden>
+
+       * eval.c (set_IGNORECASE): If IGNORECASE has a numeric value, try
+       using that before treating it as a string.  This fixes a problem
+       where setting -v IGNORECASE=0 on the command line was not working
+       properly.
+
 2015-02-01         Arnold D. Robbins     <address@hidden>
 
        Move POSIX requirement for disallowing paramater names with the
diff --git a/eval.c b/eval.c
index 82b1171..2ba7995 100644
--- a/eval.c
+++ b/eval.c
@@ -707,6 +707,8 @@ set_IGNORECASE()
        load_casetable();
        if (do_traditional)
                IGNORECASE = false;
+       else if ((n->flags & (NUMCUR|NUMBER)) != 0)
+               IGNORECASE = ! iszero(n);
        else if ((n->flags & (STRING|STRCUR)) != 0) {
                if ((n->flags & MAYBE_NUM) == 0) {
                        (void) force_string(n);
@@ -715,9 +717,7 @@ set_IGNORECASE()
                        (void) force_number(n);
                        IGNORECASE = ! iszero(n);
                }
-       } else if ((n->flags & (NUMCUR|NUMBER)) != 0)
-               IGNORECASE = ! iszero(n);
-       else
+       } else
                IGNORECASE = false;             /* shouldn't happen */
                  
        set_RS();       /* set_RS() calls set_FS() if need be, for us */

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

Summary of changes:
 ChangeLog |    7 +++++++
 eval.c    |    6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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