]> git.sur5r.net Git - openldap/commitdiff
Rename setlocale,bindtextdomain,textdomain to ldap_pvt_<function> (ITS#2513).
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 5 Jun 2003 11:49:07 +0000 (11:49 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 5 Jun 2003 11:49:07 +0000 (11:49 +0000)
#include "ldap_defaults.h" to get LDAP_LOCALEDIR.

clients/tools/common.c

index c301ee618d024859d70cdb5b887140483e85c1f2..b558b2942b4648e8400946a9c0c25372255b0a7d 100644 (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