From 0f113faea8db91c3890e7ab0edfefedce5ec2594 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 30 Mar 2010 11:55:10 +1100 Subject: charset: look for the codepages in the right place selftest runs from source3/source4. The codepages when not installed are in ../codepages --- lib/util/charset/codepoints.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; } -- cgit