This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 14/17] Regex: Improve error text for REG_EBRACK.
- From: Arnold Robbins <arnold at skeeve dot com>
- To: carlos at redhat dot com, libc-alpha at sourceware dot org
- Date: Fri, 08 Dec 2017 11:16:59 +0200
- Subject: [PATCH 14/17] Regex: Improve error text for REG_EBRACK.
- Authentication-results: sourceware.org; auth=none
This patch improves the error text for REG_EBRACK.
2017-11-30 Arnold D. Robbins <arnold@skeeve.com>
* regcomp.c (__re_error_msgid): Improve the text for REG_EBRACK.
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 701855a..8920cf1 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -155,9 +155,9 @@ const char __re_error_msgid[] attribute_hidden =
gettext_noop ("Invalid back reference") /* REG_ESUBREG */
"\0"
#define REG_EBRACK_IDX (REG_ESUBREG_IDX + sizeof "Invalid back reference")
- gettext_noop ("Unmatched [ or [^") /* REG_EBRACK */
+ gettext_noop ("Unmatched [, [^, [:, [., or [=") /* REG_EBRACK */
"\0"
-#define REG_EPAREN_IDX (REG_EBRACK_IDX + sizeof "Unmatched [ or [^")
+#define REG_EPAREN_IDX (REG_EBRACK_IDX + sizeof "Unmatched [, [^, [:, [., or [=")
gettext_noop ("Unmatched ( or \\(") /* REG_EPAREN */
"\0"
#define REG_EBRACE_IDX (REG_EPAREN_IDX + sizeof "Unmatched ( or \\(")