lib/util: Use charset_compat.h if SAMBA_UTIL_CORE_ONLY
commit412fc6e33cef264c4091387d807381e35573ad5c
authorMartin Schwenke <martin@meltin.net>
Mon, 22 Sep 2014 10:26:24 +0000 (22 20:26 +1000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 7 Nov 2014 19:58:10 +0000 (7 20:58 +0100)
tree6e8cbeef8d66c3fd1e86d89947624800757d1223
parent0a9dc8dcf0b0cb2c52df80e8b38ec463151fac6d
lib/util: Use charset_compat.h if SAMBA_UTIL_CORE_ONLY

When doing a CTDB standalone build we don't want to use dynconfig,
since this introduces a lot of unwanted complexity.  To avoid this,
either:

* charset needs to be nobbled to avoid loading the case tables, since
  this depends on dynconfig; or

* charset needs to be avoid completely, so some functions need to be
  replaced with their ASCII counterparts.

The 2nd options seems more honest and less error-prone.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit c12aa0c444555f2c8051492083abba69fb94586f)
lib/util/charset_compat.h [new file with mode: 0644]
lib/util/samba_util.h
lib/util/substitute.c
lib/util/wscript_build