aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme-tool.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2010-05-12 17:40:08 +0000
committerMarcus Brinkmann <[email protected]>2010-05-12 17:40:08 +0000
commit8d27defa02a67ec06f8ce06b14427b5eba8f54e6 (patch)
tree796a4836c7d9d161fb25dca6e7ec9b7cf8754b71 /src/gpgme-tool.c
parent2010-05-12 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-8d27defa02a67ec06f8ce06b14427b5eba8f54e6.tar.gz
gpgme-8d27defa02a67ec06f8ce06b14427b5eba8f54e6.zip
2010-05-12 Marcus Brinkmann <[email protected]>
* configure.ac: Check for setlocale. src/ 2010-05-12 Marcus Brinkmann <[email protected]> * gpgme-tool.c (main): Protect call to setlocale with HAVE_SETLOCALE.
Diffstat (limited to 'src/gpgme-tool.c')
-rw-r--r--src/gpgme-tool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpgme-tool.c b/src/gpgme-tool.c
index f102979d..0f16aac2 100644
--- a/src/gpgme-tool.c
+++ b/src/gpgme-tool.c
@@ -2908,7 +2908,9 @@ main (int argc, char *argv[])
struct args args;
struct gpgme_tool gt;
+#ifdef HAVE_SETLOCALE
setlocale (LC_ALL, "");
+#endif
gpgme_check_version (NULL);
#ifdef LC_CTYPE
gpgme_set_locale (NULL, LC_CTYPE, setlocale (LC_CTYPE, NULL));