Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
668894e6
...
668894e6b79d2e53fffa6c2149d9c6b07b3578d7
authored
2005-03-10 21:08:14 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_true_answer_p): Ignore leading whitespace.
1 parent
70934b27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
17 deletions
mailbox/mutil.c
mailbox/mutil.c
View file @
668894e
/* 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,23 +1151,29 @@ mu_true_answer_p (const char *p)
if
(
!
p
)
return
-
1
;
/* TRANSLATORS: This is a list of characters which start
an affirmative answer. Whenever possible, please preserve
'yY' in your translation, e.g., for Euskara:
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
msgstr "yYbB";
*/
if
(
strchr
(
_
(
"yY"
),
*
p
))
return
1
;
/* TRANSLATORS: This is a list of characters which start
a negative answer. Whenever possible, please preserve
'nN' in your translation, e.g., for Euskara:
msgstr "nNeE";
*/
else
if
(
strchr
(
_
(
"nN"
),
*
p
))
return
0
;
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:
msgstr "yYbB";
*/
if
(
strchr
(
_
(
"yY"
),
*
p
))
return
1
;
/* TRANSLATORS: This is a list of characters which start
a negative answer. Whenever possible, please preserve
'nN' in your translation, e.g., for Euskara:
msgstr "nNeE";
*/
else
if
(
strchr
(
_
(
"nN"
),
*
p
))
return
0
;
}
return
-
1
;
}
...
...
Please
register
or
sign in
to post a comment