Commit 668894e6 668894e6b79d2e53fffa6c2149d9c6b07b3578d7 by Sergey Poznyakoff

(mu_true_answer_p): Ignore leading whitespace.

1 parent 70934b27
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2003,
2005 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -1150,6 +1151,11 @@ mu_true_answer_p (const char *p)
if (!p)
return -1;
while (*p && isspace (*p))
p++;
if (*p)
{
/* TRANSLATORS: This is a list of characters which start
an affirmative answer. Whenever possible, please preserve
'yY' in your translation, e.g., for Euskara:
......@@ -1167,6 +1173,7 @@ mu_true_answer_p (const char *p)
*/
else if (strchr (_("nN"), *p))
return 0;
}
return -1;
}
......