From 76fafe5e8bd99b345a7c7699447e4cc5d5382f19 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 10 Sep 2013 17:34:38 +0200 Subject: add mutt-nntp --- mutt-nntp/crypt-gpgme.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mutt-nntp/crypt-gpgme.patch (limited to 'mutt-nntp/crypt-gpgme.patch') diff --git a/mutt-nntp/crypt-gpgme.patch b/mutt-nntp/crypt-gpgme.patch new file mode 100644 index 0000000..7ed9348 --- /dev/null +++ b/mutt-nntp/crypt-gpgme.patch @@ -0,0 +1,32 @@ +# HG changeset patch +# User Roman Kagan +# Date 1290506473 -10800 +# Node ID 938f0706311a6ab599d29d35447f0c70972fe7cf +# Parent 01731fb1884ea0e1eaf9008ea9c70804b66f2363 +crypt-gpgme: actually init gpgme + +Recent versions of gpgme (at least the one packaged with Fedora 14, +gpgme-1.2.0), requires proper initialization of the library before use. + +The initialization is done via gpgme_check_version(), and gpgme_set_locale() is +recommended right afterwards, too (see gpgme manual for details). + +Otherwise gpgme_init() fails with "Not operational" error, which makes mutt +immediately quit. + +diff --git a/crypt-gpgme.c b/crypt-gpgme.c +--- a/crypt-gpgme.c ++++ b/crypt-gpgme.c +@@ -4191,6 +4191,12 @@ + if (mutt_any_key_to_continue (NULL) == -1) + mutt_exit(1); + } ++ ++ gpgme_check_version (NULL); ++ gpgme_set_locale (NULL, LC_CTYPE, setlocale (LC_CTYPE, NULL)); ++#ifdef LC_MESSAGES ++ gpgme_set_locale (NULL, LC_MESSAGES, setlocale (LC_MESSAGES, NULL)); ++#endif + } + + void pgp_gpgme_init (void) -- cgit v1.2.3