# passwd
AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h)
-# iconv
+# locale
AC_CHECK_HEADERS(ctype.h locale.h)
# glob
#include <giconv.h>
#endif
-#ifdef HAVE_CTYPE_H
-#include <ctype.h>
-#endif
-
-#ifdef HAVE_LOCALE_H
-#include <locale.h>
-#endif
-
/* needed for some systems without iconv. Doesn't really matter
what error code we use */
#ifndef EILSEQ
--- /dev/null
+/*
+ Unix SMB/CIFS implementation.
+
+ locale include wrappers
+
+ Copyright (C) Andrew Tridgell 2004
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifdef HAVE_CTYPE_H
+#include <ctype.h>
+#endif
+
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
#include "hdb.h"
#include "lib/ldb/include/ldb.h"
#include "lib/ldb/include/ldb_errors.h"
-#include "system/iconv.h"
#include "librpc/gen_ndr/netlogon.h"
#include "auth/auth.h"
#include "auth/auth_sam.h"
*/
#include "includes.h"
-#include "system/iconv.h"
+#include "system/locale.h"
/**
* @file
#ifdef _SAMBA_BUILD_
#include "system/filesys.h"
-#include "system/iconv.h"
+#include "system/locale.h"
#include "system/time.h"
/* tell ldb we have the internal ldap code */
#include "system/time.h"
#include "system/network.h"
#include "system/filesys.h"
-#include "system/iconv.h"
void replace_dummy(void);
void replace_dummy(void) {}
*/
#include "includes.h"
-#include "system/iconv.h"
#include "lib/samba3/samba3.h"
#include "lib/tdb/include/tdbutil.h"
#include "system/filesys.h"
*/
#include "includes.h"
+#include "system/locale.h"
#include "lib/samba3/samba3.h"
-#include "system/iconv.h"
/*! Convert 32 hex characters into a 16 byte array. */
*/
#include "includes.h"
-#include "system/iconv.h"
#include "system/filesys.h"
#include "lib/tdb/include/tdbutil.h"
#include "lib/samba3/samba3.h"
#include "includes.h"
#include "system/network.h"
-#include "system/iconv.h"
#include "lib/socket/socket.h"
+#include "system/locale.h"
#define FAIL (-1)
#define ALLONES ((uint32_t)0xFFFFFFFF)
#include "includes.h"
#include "lib/tdb/include/tdb.h"
-#include "system/iconv.h"
+#include "system/locale.h"
#include "system/filesys.h"
#endif
*/
#include "includes.h"
-#include "system/iconv.h"
#include "system/filesys.h"
#include "lib/crypto/crypto.h"
+#include "system/locale.h"
/**
* @file
#include "includes.h"
#include "system/network.h"
-#include "system/iconv.h"
#include "system/filesys.h"
+#include "system/locale.h"
/**
* @file
#include "smb.h"
#include "pstring.h"
#include "lib/ldb/include/ldb.h"
-#include "system/iconv.h"
+#include "system/locale.h"
/**
* @file
*/
#include "includes.h"
-#include "system/iconv.h"
#include "libcli/util/asn_1.h"
#include "libcli/ldap/ldap.h"
*/
#include "includes.h"
-#include "system/iconv.h"
#include "libcli/util/asn_1.h"
#include "libcli/ldap/ldap.h"
#include "lib/ldb/include/ldb.h"
*/
#include "includes.h"
-#include "system/iconv.h"
#include "librpc/gen_ndr/ndr_nbt.h"
#include "librpc/gen_ndr/ndr_misc.h"
+#include "system/locale.h"
/* don't allow an unlimited number of name components */
#define MAX_COMPONENTS 10
*/
#include "includes.h"
-#include "system/iconv.h"
#include "libcli/security/security.h"
#include "librpc/gen_ndr/ndr_misc.h"
+#include "system/locale.h"
struct flag_map {
const char *name;
*/
#include "includes.h"
+#include "system/locale.h"
#include "vfs_posix.h"
-#include "system/iconv.h"
/*
this mangling scheme uses the following format
#include "dynconfig.h"
#include "pstring.h"
#include "system/time.h"
-#include "system/iconv.h"
+#include "system/locale.h"
#include "librpc/gen_ndr/svcctl.h"
#include "librpc/gen_ndr/samr.h"
#include "smb_server/smb_server.h"
*/
#include "includes.h"
-#include "system/iconv.h"
+#include "system/locale.h"
/* -------------------------------------------------------------------------- **
* Constants...
#include "includes.h"
#include "dynconfig.h"
#include "system/network.h"
-#include "system/iconv.h"
#include "system/filesys.h"
/**
#include "includes.h"
#include "torture/torture.h"
-#include "system/iconv.h"
#include "system/filesys.h"
+#include "system/locale.h"
#include "libcli/libcli.h"
#include "torture/util.h"
#include "pstring.h"
RPC_NDR_ECHO \
LIBCLI_SMB \
MESSAGING \
+ ICONV \
registry
# End SUBSYSTEM TORTURE_LOCAL
#################################
#include "includes.h"
#include "lib/cmdline/popt_common.h"
-#include "system/iconv.h"
#include "system/filesys.h"
+#include "system/locale.h"
#include "librpc/rpc/dcerpc.h"
#include "librpc/rpc/dcerpc_table.h"
#include "includes.h"
#include "lib/cmdline/popt_common.h"
-#include "system/iconv.h"
#include "lib/socket/socket.h"
#include "system/network.h"
+#include "system/locale.h"
#include "netif/netif.h"
#include "librpc/gen_ndr/nbt.h"
#include "libcli/nbt/libnbt.h"