* configure.ac: Check for setlocale.
src/
2010-05-12 Marcus Brinkmann <marcus@g10code.de>
* gpgme-tool.c (main): Protect call to setlocale with
HAVE_SETLOCALE.
+2010-05-12 Marcus Brinkmann <marcus@g10code.de>
+
+ * configure.ac: Check for setlocale.
+
2010-05-07 Werner Koch <wk@g10code.com>
* configure.ac: Change checks to always require libassuan.
***])
fi
+AC_CHECK_FUNCS(setlocale)
+
# Checking for libgpg-error.
AM_PATH_GPG_ERROR(1.8,, AC_MSG_ERROR([libgpg-error was not found]))
AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME,
2010-05-12 Marcus Brinkmann <marcus@g10code.de>
+ * gpgme-tool.c (main): Protect call to setlocale with
+ HAVE_SETLOCALE.
+
* Makefile.am (system_components): Remove custom cppflags from
RCCOMPILE (because gpg-error adds -idirafter that makes RC bail.
[HAVE_W32CE_SYSTEM]: Add w32-ce.h and w32-ce.c, clear
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));