summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-30 11:55:10 +1100
committerAndrew Tridgell <tridge@samba.org>2010-03-30 12:31:03 +1100
commit0f113faea8db91c3890e7ab0edfefedce5ec2594 (patch)
tree7cd1677e8d68fe9d3a092b686c3ebd57db0d120d /lib
parente4c75252a962341c35ef45989ea12c637f7b3a1b (diff)
downloadsamba-0f113faea8db91c3890e7ab0edfefedce5ec2594.tar.gz
samba-0f113faea8db91c3890e7ab0edfefedce5ec2594.tar.bz2
samba-0f113faea8db91c3890e7ab0edfefedce5ec2594.zip
charset: look for the codepages in the right place
selftest runs from source3/source4. The codepages when not installed are in ../codepages
Diffstat (limited to 'lib')
-rw-r--r--lib/util/charset/codepoints.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/charset/codepoints.c b/lib/util/charset/codepoints.c
index a940c1baf0..8be20512af 100644
--- a/lib/util/charset/codepoints.c
+++ b/lib/util/charset/codepoints.c
@@ -49,14 +49,14 @@ void load_case_tables(void)
talloc_free(mem_ctx);
if (upcase_table == NULL) {
/* try also under codepages for testing purposes */
- upcase_table = map_file("codepages/upcase.dat", 0x20000);
+ upcase_table = map_file("../codepages/upcase.dat", 0x20000);
if (upcase_table == NULL) {
upcase_table = (void *)-1;
}
}
if (lowcase_table == NULL) {
/* try also under codepages for testing purposes */
- lowcase_table = map_file("codepages/lowcase.dat", 0x20000);
+ lowcase_table = map_file("../codepages/lowcase.dat", 0x20000);
if (lowcase_table == NULL) {
lowcase_table = (void *)-1;
}