1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

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 <abartlet@samba.org>
Autobuild-Date: Fri Feb 18 09:29:35 CET 2011 on sn-devel-104
This commit is contained in:
Andrew Bartlett
2011-02-18 13:59:05 +11:00
parent 2a3a86a86f
commit 1ad8e5229f
9 changed files with 31 additions and 10 deletions

View File

@ -68,7 +68,7 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
frame = talloc_stackframe();
/* Case tables must be loaded before any string comparisons occour */
load_case_tables();
load_case_tables_library();
/* When libnetapi is invoked from an application, it does not
* want to be swamped with level 10 debug messages, even if