Commit 0b92df70 authored by Thomas Roessler's avatar Thomas Roessler

nl_langinfo({YES,NO}EXPR) may return an _extended_ regular

expression.  Close #312.
parent 5ca18569
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment