summaryrefslogtreecommitdiff
path: root/source4/lib/charset
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-11-12 00:54:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:25:28 -0500
commit153349788cc643135b347eec80620ce958877f4b (patch)
tree642b59e98900362cdf78db0d36a6d08009686fa3 /source4/lib/charset
parent273d5f866653db0190c334c086bbfbd88d0ac3cb (diff)
downloadsamba-153349788cc643135b347eec80620ce958877f4b.tar.gz
samba-153349788cc643135b347eec80620ce958877f4b.tar.bz2
samba-153349788cc643135b347eec80620ce958877f4b.zip
r19672: Make LIBSAMBA-UTIL a subsystem again for now because it has interdependencies
with LIBSAMBA-CONFIG. (This used to be commit 4a044fb529075044755a0b5cc21446bf24bec72e)
Diffstat (limited to 'source4/lib/charset')
-rw-r--r--source4/lib/charset/config.mk1
-rw-r--r--source4/lib/charset/util_unistr.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/charset/config.mk b/source4/lib/charset/config.mk
index 67703fbc37..4f0c80c79d 100644
--- a/source4/lib/charset/config.mk
+++ b/source4/lib/charset/config.mk
@@ -8,5 +8,6 @@ OBJ_FILES = \
PUBLIC_HEADERS = charset.h
PUBLIC_PROTO_HEADER = charset_proto.h
PUBLIC_DEPENDENCIES = ICONV
+PRIVATE_DEPENDENCIES = DYNCONFIG
# End SUBSYSTEM CHARSET
################################################
diff --git a/source4/lib/charset/util_unistr.c b/source4/lib/charset/util_unistr.c
index e6d929b4e5..7e1b08ca3e 100644
--- a/source4/lib/charset/util_unistr.c
+++ b/source4/lib/charset/util_unistr.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "system/locale.h"
+#include "dynconfig.h"
/**
* @file
@@ -44,8 +45,8 @@ static void load_case_tables(void)
if (!mem_ctx) {
smb_panic("No memory for case_tables");
}
- upcase_table = map_file(data_path(mem_ctx, "upcase.dat"), 0x20000);
- lowcase_table = map_file(data_path(mem_ctx, "lowcase.dat"), 0x20000);
+ upcase_table = map_file(talloc_asprintf(mem_ctx, "%s/upcase.dat", dyn_DATADIR), 0x20000);
+ lowcase_table = map_file(talloc_asprintf(mem_ctx, "%s/lowcase.dat", dyn_DATADIR), 0x20000);
talloc_free(mem_ctx);
if (upcase_table == NULL) {
/* try also under codepages for testing purposes */