aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-06-10 06:05:58 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-06-10 06:05:58 +0300
commitd52d17b46e53bb0d4a991cd32f859eb349d3b101 (patch)
tree26998f97b7de9db503fe50e58edb77b2f4ec898a
parentfe4f4f372625682b10d5df11fef3c6f643e13410 (diff)
downloadegawk-d52d17b46e53bb0d4a991cd32f859eb349d3b101.tar.gz
egawk-d52d17b46e53bb0d4a991cd32f859eb349d3b101.tar.bz2
egawk-d52d17b46e53bb0d4a991cd32f859eb349d3b101.zip
Remove obsolete warning in re.c.
-rw-r--r--ChangeLog5
-rw-r--r--re.c10
2 files changed, 5 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index fbc31fc2..3c7efe8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-10 Arnold D. Robbins <arnold@skeeve.com>
+
+ * re.c (check_bracket_exp): Remove warning about ranges being
+ locale dependent, since they aren't anymore.
+
2013-06-09 Arnold D. Robbins <arnold@skeeve.com>
* io.c (iop_finish): Change fstat call to fcntl/F_GETFL per
diff --git a/re.c b/re.c
index a4891cb1..e427a8fe 100644
--- a/re.c
+++ b/re.c
@@ -555,8 +555,6 @@ again:
goto done;
for (count++, sp++; *sp != '\0'; sp++) {
- static bool range_warned = false;
-
if (*sp == '[')
count++;
/*
@@ -575,14 +573,6 @@ again:
count--;
}
- if (*sp == '-' && do_lint && ! range_warned && count == 1
- && sp[-1] != '[' && sp[1] != ']'
- && ! isdigit((unsigned char) sp[-1]) && ! isdigit((unsigned char) sp[1])
- && ! (sp[-2] == '[' && sp[-1] == '^')) {
- range_warned = true;
- warning(_("range of the form `[%c-%c]' is locale dependent"),
- sp[-1], sp[1]);
- }
if (count == 0) {
sp++; /* skip past ']' */
break;