aboutsummaryrefslogtreecommitdiffstats
path: root/agent/protect-tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/protect-tool.c')
-rw-r--r--agent/protect-tool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/protect-tool.c b/agent/protect-tool.c
index 0bb344424..59f6c6711 100644
--- a/agent/protect-tool.c
+++ b/agent/protect-tool.c
@@ -872,6 +872,10 @@ main (int argc, char **argv )
set_strusage (my_strusage);
gcry_control (GCRYCTL_SUSPEND_SECMEM_WARN);
log_set_prefix ("gpg-protect-tool", 1);
+
+ /* Try to auto set the character set. */
+ set_native_charset (NULL);
+
i18n_init ();
if (!gcry_check_version (NEED_LIBGCRYPT_VERSION) )
@@ -884,6 +888,7 @@ main (int argc, char **argv )
gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0);
+
#ifdef __MINGW32__
opt_homedir = read_w32_registry_string ( NULL,
"Software\\GNU\\GnuPG", "HomeDir" );