aboutsummaryrefslogtreecommitdiffstats
path: root/src/op-support.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2010-05-07 01:32:54 +0000
committerMarcus Brinkmann <[email protected]>2010-05-07 01:32:54 +0000
commitbe3a828e7057e2ea01772b2a00d2ad3e5c46776c (patch)
tree8223fed22dbc57323d27a90909e6b8fb6646c4a5 /src/op-support.c
parent2010-05-07 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-be3a828e7057e2ea01772b2a00d2ad3e5c46776c.tar.gz
gpgme-be3a828e7057e2ea01772b2a00d2ad3e5c46776c.zip
2010-05-07 Marcus Brinkmann <[email protected]>
* engine-g13.c, gpgme.c, engine-gpgsm.c, engine-gpg.c, op-support.c, engine-assuan.c, gpgme-tool.c: Include <locale.h> only if available with HAVE_LOCALE_H and conditionalize use of LC_CTYPE on its definition. * engine-gpgconf.c: Do not include <locale.h>.
Diffstat (limited to '')
-rw-r--r--src/op-support.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/op-support.c b/src/op-support.c
index 67385360..66e6849f 100644
--- a/src/op-support.c
+++ b/src/op-support.c
@@ -23,7 +23,9 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
+#ifdef HAVE_LOCALE_H
#include <locale.h>
+#endif
#include "gpgme.h"
#include "context.h"
@@ -114,7 +116,10 @@ _gpgme_op_reset (gpgme_ctx_t ctx, int type)
if (!reuse_engine)
{
+ err = 0;
+#ifdef LC_CTYPE
err = _gpgme_engine_set_locale (ctx->engine, LC_CTYPE, ctx->lc_ctype);
+#endif
#ifdef LC_MESSAGES
if (!err)
err = _gpgme_engine_set_locale (ctx->engine,