(mu_true_answer_p): Ignore leading whitespace.
Showing
1 changed file
with
8 additions
and
1 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2002, 2003, |
3 | 2005 Free Software Foundation, Inc. | ||
3 | 4 | ||
4 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 6 | modify it under the terms of the GNU Lesser General Public |
... | @@ -1150,6 +1151,11 @@ mu_true_answer_p (const char *p) | ... | @@ -1150,6 +1151,11 @@ mu_true_answer_p (const char *p) |
1150 | if (!p) | 1151 | if (!p) |
1151 | return -1; | 1152 | return -1; |
1152 | 1153 | ||
1154 | while (*p && isspace (*p)) | ||
1155 | p++; | ||
1156 | |||
1157 | if (*p) | ||
1158 | { | ||
1153 | /* TRANSLATORS: This is a list of characters which start | 1159 | /* TRANSLATORS: This is a list of characters which start |
1154 | an affirmative answer. Whenever possible, please preserve | 1160 | an affirmative answer. Whenever possible, please preserve |
1155 | 'yY' in your translation, e.g., for Euskara: | 1161 | 'yY' in your translation, e.g., for Euskara: |
... | @@ -1167,6 +1173,7 @@ mu_true_answer_p (const char *p) | ... | @@ -1167,6 +1173,7 @@ mu_true_answer_p (const char *p) |
1167 | */ | 1173 | */ |
1168 | else if (strchr (_("nN"), *p)) | 1174 | else if (strchr (_("nN"), *p)) |
1169 | return 0; | 1175 | return 0; |
1176 | } | ||
1170 | return -1; | 1177 | return -1; |
1171 | } | 1178 | } |
1172 | 1179 | ... | ... |
-
Please register or sign in to post a comment