diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | re.c | 10 |
2 files changed, 5 insertions, 10 deletions
@@ -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 @@ -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; |