diff --git a/dirmngr/ChangeLog b/dirmngr/ChangeLog index b5294642f..c6db553de 100644 --- a/dirmngr/ChangeLog +++ b/dirmngr/ChangeLog @@ -1,3 +1,14 @@ +2010-06-28 Werner Koch + + * dirmngr_ldap.c (my_i18n_init): Remove. + (main): Call i18n_init instead of above function. + + * dirmngr-client.c (my_i18n_init): Remove. + (main): Call i18n_init instead of above function. + + * Makefile.am (dirmngr_LDADD): Add ../gl/libgnu. + (dirmngr_ldap_LDADD, dirmngr_client_LDADD): Ditto. + 2010-06-09 Werner Koch * i18n.h: Remove. diff --git a/dirmngr/Makefile.am b/dirmngr/Makefile.am index b4ea8c66a..7fbff02ff 100644 --- a/dirmngr/Makefile.am +++ b/dirmngr/Makefile.am @@ -41,7 +41,7 @@ dirmngr_SOURCES = dirmngr.c dirmngr.h server.c crlcache.c crlfetch.c \ b64dec.c cdb.h cdblib.c ldap.c http.c http.h misc.c \ ocsp.c ocsp.h validate.c validate.h -dirmngr_LDADD = $(libcommonpth) $(DNSLIBS) $(LIBASSUAN_LIBS) \ +dirmngr_LDADD = $(libcommonpth) ../gl/libgnu.a $(DNSLIBS) $(LIBASSUAN_LIBS) \ $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(PTH_LIBS) $(LIBINTL) $(LIBICONV) if HAVE_W32_SYSTEM @@ -53,11 +53,11 @@ endif dirmngr_ldap_SOURCES = dirmngr_ldap.c $(ldap_url) no-libgcrypt.c dirmngr_ldap_CFLAGS = $(GPG_ERROR_CFLAGS) dirmngr_ldap_LDFLAGS = -dirmngr_ldap_LDADD = $(libcommon) $(DNSLIBS) \ +dirmngr_ldap_LDADD = $(libcommon) ../gl/libgnu.a $(DNSLIBS) \ $(GPG_ERROR_LIBS) $(LDAPLIBS) $(LIBINTL) $(LIBICONV) dirmngr_client_SOURCES = dirmngr-client.c b64enc.c no-libgcrypt.c -dirmngr_client_LDADD = $(libcommon) $(LIBASSUAN_LIBS) \ +dirmngr_client_LDADD = $(libcommon) ../gl/libgnu.a $(LIBASSUAN_LIBS) \ $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV) diff --git a/dirmngr/dirmngr-client.c b/dirmngr/dirmngr-client.c index 1e388408d..00b12b712 100644 --- a/dirmngr/dirmngr-client.c +++ b/dirmngr/dirmngr-client.c @@ -164,21 +164,6 @@ my_strusage (int level) } -static void -my_i18n_init (void) -{ -#warning Better use common init functions -#ifdef USE_SIMPLE_GETTEXT - set_gettext_file (PACKAGE); -#else -# ifdef ENABLE_NLS - setlocale (LC_ALL, "" ); - bindtextdomain (PACKAGE, LOCALEDIR); - textdomain (PACKAGE); -# endif -#endif -} - int main (int argc, char **argv ) @@ -214,7 +199,7 @@ main (int argc, char **argv ) assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT); /* Setup I18N. */ - my_i18n_init(); + i18n_init(); /* Parse the command line. */ pargs.argc = &argc; diff --git a/dirmngr/dirmngr_ldap.c b/dirmngr/dirmngr_ldap.c index b73cc7da6..f862081c1 100644 --- a/dirmngr/dirmngr_ldap.c +++ b/dirmngr/dirmngr_ldap.c @@ -161,22 +161,6 @@ my_strusage (int level) } -static void -my_i18n_init (void) -{ -#warning Better use common init functions -#ifdef USE_SIMPLE_GETTEXT - set_gettext_file (PACKAGE); -#else -# ifdef ENABLE_NLS - setlocale (LC_ALL, "" ); - bindtextdomain (PACKAGE, LOCALEDIR); - textdomain (PACKAGE); -# endif -#endif -} - - int main (int argc, char **argv ) { @@ -194,7 +178,7 @@ main (int argc, char **argv ) log_set_prefix ("dirmngr_ldap", JNLIB_LOG_WITH_PREFIX); /* Setup I18N. */ - my_i18n_init(); + i18n_init(); /* LDAP defaults */ opt.timeout.tv_sec = DEFAULT_LDAP_TIMEOUT;