diff options
Diffstat (limited to 'src/gpg/GpgContext.cpp')
-rw-r--r-- | src/gpg/GpgContext.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp index 5d901c3f..a8b86619 100644 --- a/src/gpg/GpgContext.cpp +++ b/src/gpg/GpgContext.cpp @@ -51,7 +51,7 @@ GpgContext::GpgContext(bool independent_database, std::string db_path, if (_first) { /* Initialize the locale environment. */ - setlocale(LC_ALL, ""); + LOG(INFO) << "locale" << setlocale(LC_CTYPE, nullptr); gpgme_check_version(nullptr); gpgme_set_locale(nullptr, LC_CTYPE, setlocale(LC_CTYPE, nullptr)); #ifdef LC_MESSAGES @@ -76,7 +76,7 @@ GpgContext::GpgContext(bool independent_database, std::string db_path, if (engineInfo->protocol == GPGME_PROTOCOL_OpenPGP && strcmp(engineInfo->version, "1.0.0") != 0) find_openpgp = true, info.AppPath = engineInfo->file_name, - info.DatabasePath = "default"; + info.DatabasePath = "default", info.GnupgVersion = engineInfo->version; if (engineInfo->protocol == GPGME_PROTOCOL_CMS && strcmp(engineInfo->version, "1.0.0") != 0) find_cms = true; @@ -91,6 +91,8 @@ GpgContext::GpgContext(bool independent_database, std::string db_path, good_ = false; return; } else { + LOG(INFO) << "Gnupg Version" << info.GnupgVersion; + // Set Independent Database if (independent_database) { info.DatabasePath = db_path; |