From 1ad8e5229f618fc04af371ba52b81f2e7e1f88f5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 18 Feb 2011 13:59:05 +1100 Subject: lib/util/charset Add back setlocale(), but only when called from binaries When called from a library, we don't want to call this, as we may overwrite some of our calling program's context. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Fri Feb 18 09:29:35 CET 2011 on sn-devel-104 --- nsswitch/wins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nsswitch') diff --git a/nsswitch/wins.c b/nsswitch/wins.c index eba27bc287..5136c94c76 100644 --- a/nsswitch/wins.c +++ b/nsswitch/wins.c @@ -48,7 +48,7 @@ NSS_STATUS _nss_wins_gethostbyname2_r(const char *name, int af, struct hostent * static void nss_wins_init(void) { initialised = 1; - load_case_tables(); + load_case_tables_library(); lp_set_cmdline("log level", "0"); TimeInit(); -- cgit