Rename setlocale,bindtextdomain,textdomain to ldap_pvt_<function> (ITS#2513).

#include "ldap_defaults.h" to get LDAP_LOCALEDIR.
This commit is contained in:
Hallvard Furuseth 2003-06-05 11:49:07 +00:00
parent b7e6be414d
commit 6fab51e339

View File

@ -18,6 +18,7 @@
#include <ldap.h>
#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