aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;