]> granicus.if.org Git - mutt/commitdiff
nl_langinfo({YES,NO}EXPR) may return an _extended_ regular
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 16 Oct 2000 17:29:55 +0000 (17:29 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 16 Oct 2000 17:29:55 +0000 (17:29 +0000)
expression.  Close #312.

curs_lib.c

index 8d5b03e894dfc9d065944a7682bf4d82dc8a4be1..081d64dc62ea7f521dbd5af4228f88c883674e2d 100644 (file)
@@ -161,9 +161,9 @@ int mutt_yesorno (const char *msg, int def)
   answer[1] = 0;
   
   reyes_ok = (expr = nl_langinfo (YESEXPR)) && expr[0] == '^' &&
-            !regcomp (&reyes, expr, REG_NOSUB);
+            !regcomp (&reyes, expr, REG_NOSUB|REG_EXTENDED);
   reno_ok = (expr = nl_langinfo (NOEXPR)) && expr[0] == '^' &&
-            !regcomp (&reno, expr, REG_NOSUB);
+            !regcomp (&reno, expr, REG_NOSUB|REG_EXTENDED);
 #endif
 
   CLEARLINE(LINES-1);