aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-03-07 14:54:40 +0000
committerJason Woodward2010-03-07 14:54:40 +0000
commit58314be60f0170fdcd765a1e1068e0be498185f9 (patch)
tree8765ac4faf05eec085a53d92fcb57677e9e8c64e
parent12b9265e9f6c4dc184524647be75f7f381b53725 (diff)
downloadslapt-get-58314be60f0170fdcd765a1e1068e0be498185f9.tar.gz
gpgme requires gpgme_check_version for initialization purposes
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9830ac3..6c054f4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -87,6 +87,13 @@ int main( int argc, char *argv[] )
textdomain(GETTEXT_PACKAGE);
#endif
+ #ifdef SLAPT_HAS_GPGME
+ gpgme_check_version (NULL);
+ #ifdef ENABLE_NLS
+ gpgme_set_locale (NULL, LC_CTYPE, setlocale (LC_CTYPE, NULL));
+ #endif
+ #endif
+
if ( argc < 2 ) {
usage();
exit(EXIT_FAILURE);