From: Hallvard Furuseth Date: Thu, 5 Jun 2003 11:49:07 +0000 (+0000) Subject: Rename setlocale,bindtextdomain,textdomain to ldap_pvt_ (ITS#2513). X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~932 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fab51e33929ad77d855885ff50754d9aac79512;p=openldap Rename setlocale,bindtextdomain,textdomain to ldap_pvt_ (ITS#2513). #include "ldap_defaults.h" to get LDAP_LOCALEDIR. --- diff --git a/clients/tools/common.c b/clients/tools/common.c index c301ee618d..b558b2942b 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -18,6 +18,7 @@ #include #include "lutil_ldap.h" +#include "ldap_defaults.h" #include "common.h" @@ -59,9 +60,9 @@ char *prog = NULL; void tool_init( void ) { - setlocale(LC_MESSAGES,""); - bindtextdomain(OPENLDAP_PACKAGE, LDAP_LOCALEDIR); - textdomain(OPENLDAP_PACKAGE); + ldap_pvt_setlocale(LC_MESSAGES, ""); + ldap_pvt_bindtextdomain(OPENLDAP_PACKAGE, LDAP_LOCALEDIR); + ldap_pvt_textdomain(OPENLDAP_PACKAGE); } void