Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Wed, 18 May 2005 17:19:47 +0000 (17:19 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Wed, 18 May 2005 17:19:47 +0000 (17:19 +0000)
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

curs_lib.c

index d987b51..dc53a27 100644 (file)
@@ -238,7 +238,7 @@ int mutt_yesorno (const char *msg, int def)
 #else
     if (
 #endif
 #else
     if (
 #endif
-         (tolower (ch.ch) == 'y')) {
+         (tolower (ch.ch) == *yes)) {
       def = M_YES;
       break;
     }
       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
 #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;
     }
       def = M_NO;
       break;
     }