From: pdmef Date: Wed, 18 May 2005 17:19:47 +0000 (+0000) Subject: Rocco Rutte: X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=865e330e5b0c6cc1d5800417bdef165547b3624d Rocco Rutte: fix yes/no queries for non C-locales on systems without nl_langinfo(YESEXPR) (reported by Felix Meinhold ,-) git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@296 e385b8ad-14ed-0310-8656-cc95a2468c6d --- diff --git a/curs_lib.c b/curs_lib.c index d987b51..dc53a27 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -238,7 +238,7 @@ int mutt_yesorno (const char *msg, int def) #else if ( #endif - (tolower (ch.ch) == 'y')) { + (tolower (ch.ch) == *yes)) { def = M_YES; break; } @@ -246,7 +246,7 @@ int mutt_yesorno (const char *msg, int def) #ifdef HAVE_LANGINFO_YESEXPR reno_ok ? (regexec (&reno, answer, 0, 0, 0) == 0) : #endif - (tolower (ch.ch) == 'n')) { + (tolower (ch.ch) == *no)) { def = M_NO; break; }