regex-quote: Fix creation of POSIX extended regular expressions.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Mar 2011 13:25:49 +0000 (14:25 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Mar 2011 13:25:49 +0000 (14:25 +0100)
* lib/regex-quote.c (ere_special): Add grouping and alternation
operators.

ChangeLog
lib/regex-quote.c

index 5413efc5dcb2c76960121cd88634de1c4b7759ff..6ceb41c1f4f959789f887ab89ca92b4597e99537 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-06  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        doc: Improve doc regarding autopoint vs. gnulib.
index 9e43733b6b8a13efaa5e2a7a590227e1609ed112..361cff0770b9b369e9fcb88a0c4b05f04e269090 100644 (file)
@@ -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)