mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
bug fix release
This commit is contained in:
parent
62f550bb0a
commit
3e0e8f884f
43 changed files with 1828 additions and 520 deletions
|
@ -25,6 +25,7 @@
|
|||
#include <ctype.h>
|
||||
#include "types.h"
|
||||
#include "util.h"
|
||||
#include "i18n.h"
|
||||
|
||||
u32
|
||||
make_timestamp()
|
||||
|
@ -79,14 +80,16 @@ print_string( FILE *fp, byte *p, size_t n, int delim )
|
|||
putc(*p, fp);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
answer_is_yes( const char *s )
|
||||
{
|
||||
if( !stricmp(s, "yes") )
|
||||
char *long_yes = _("yes");
|
||||
char *short_yes = _("yY");
|
||||
|
||||
if( !stricmp(s, long_yes ) )
|
||||
return 1;
|
||||
if( *s == 'y' && !s[1] )
|
||||
return 1;
|
||||
if( *s == 'Y' && !s[1] )
|
||||
if( strchr( short_yes, *s ) && !s[1] )
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue