From be3a828e7057e2ea01772b2a00d2ad3e5c46776c Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 7 May 2010 01:32:54 +0000 Subject: 2010-05-07 Marcus Brinkmann * engine-g13.c, gpgme.c, engine-gpgsm.c, engine-gpg.c, op-support.c, engine-assuan.c, gpgme-tool.c: Include only if available with HAVE_LOCALE_H and conditionalize use of LC_CTYPE on its definition. * engine-gpgconf.c: Do not include . --- src/op-support.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/op-support.c') 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 #include #include +#ifdef HAVE_LOCALE_H #include +#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, -- cgit v1.2.3