diff options
author | Marcus Brinkmann <[email protected]> | 2010-05-07 01:32:54 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2010-05-07 01:32:54 +0000 |
commit | be3a828e7057e2ea01772b2a00d2ad3e5c46776c (patch) | |
tree | 8223fed22dbc57323d27a90909e6b8fb6646c4a5 /src/gpgme.c | |
parent | 2010-05-07 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-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 'src/gpgme.c')
-rw-r--r-- | src/gpgme.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpgme.c b/src/gpgme.c index fe601a09..b6a518ff 100644 --- a/src/gpgme.c +++ b/src/gpgme.c @@ -27,7 +27,9 @@ #include <string.h> #include <assert.h> #include <errno.h> +#ifdef HAVE_LOCALE_H #include <locale.h> +#endif #include "util.h" #include "context.h" @@ -600,7 +602,9 @@ gpgme_set_locale (gpgme_ctx_t ctx, int category, const char *value) failed = 1; \ } +#ifdef LC_CTYPE PREPARE_ONE_LOCALE (ctype, CTYPE); +#endif #ifdef LC_MESSAGES PREPARE_ONE_LOCALE (messages, MESSAGES); #endif @@ -636,7 +640,9 @@ gpgme_set_locale (gpgme_ctx_t ctx, int category, const char *value) if (!ctx) LOCK (def_lc_lock); +#ifdef LC_CTYPE SET_ONE_LOCALE (ctype, CTYPE); +#endif #ifdef LC_MESSAGES SET_ONE_LOCALE (messages, MESSAGES); #endif |