From 6ff7b70e24f0e84e9f65ef6d021ff239cad0b2b4 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 6 Mar 2011 14:25:49 +0100 Subject: [PATCH] regex-quote: Fix creation of POSIX extended regular expressions. * lib/regex-quote.c (ere_special): Add grouping and alternation operators. --- ChangeLog | 6 ++++++ lib/regex-quote.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5413efc5d..6ceb41c1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-06 Bruno Haible + + regex-quote: Fix creation of POSIX extended regular expressions. + * lib/regex-quote.c (ere_special): Add grouping and alternation + operators. + 2011-03-05 Bruno Haible doc: Improve doc regarding autopoint vs. gnulib. diff --git a/lib/regex-quote.c b/lib/regex-quote.c index 9e43733b6..361cff077 100644 --- a/lib/regex-quote.c +++ b/lib/regex-quote.c @@ -29,7 +29,7 @@ static const char bre_special[] = "$^.*[]\\"; /* Characters that are special in an ERE. */ -static const char ere_special[] = "$^.*[]\\+?()"; +static const char ere_special[] = "$^.*[]\\+?{}()|"; size_t regex_quote_length (const char *string, int cflags) -- 2.11.0