mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* g10.c (main): Try to set a default character set. Print the
used one in verbosity level 3. * gpgv.c (main): Try to set a default character set. * status.c, status.h (STATUS_IMPORT_OK): New. * import.c (import_one,import_secret_one): Print new status.
This commit is contained in:
parent
bcedc5dad1
commit
5819b1ee45
6 changed files with 55 additions and 2 deletions
|
@ -1158,6 +1158,8 @@ main( int argc, char **argv )
|
|||
maybe_setuid = 0;
|
||||
/* Okay, we are now working under our real uid */
|
||||
|
||||
set_native_charset (NULL); /* Try to auto set the character set */
|
||||
|
||||
if( default_config )
|
||||
{
|
||||
configname = make_filename(opt.homedir, "gpg" EXTSEP_S "conf", NULL );
|
||||
|
@ -1520,7 +1522,7 @@ main( int argc, char **argv )
|
|||
case oNoSecmemWarn: secmem_set_flags( secmem_get_flags() | 1 ); break;
|
||||
case oNoPermissionWarn: opt.no_perm_warn=1; break;
|
||||
case oNoMDCWarn: opt.no_mdc_warn=1; break;
|
||||
case oCharset:
|
||||
case oCharset:
|
||||
if( set_native_charset( pargs.r.ret_str ) )
|
||||
log_error(_("%s is not a valid character set\n"),
|
||||
pargs.r.ret_str);
|
||||
|
@ -1683,6 +1685,9 @@ main( int argc, char **argv )
|
|||
}
|
||||
#endif
|
||||
|
||||
if (opt.verbose > 2)
|
||||
log_info ("using character set `%s'\n", get_native_charset ());
|
||||
|
||||
if( may_coredump && !opt.quiet )
|
||||
log_info(_("WARNING: program may create a core file!\n"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue