From 92faeaeea841dd0bce9460d25429846ae2fdc0af Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 16 Feb 2011 16:30:56 +1100 Subject: charset Remove use of {isupper,islower,toupper,tolower}_w functions These now call the common _m functions that consider UTF16 code points. This removes the code which will make up a 'lame' table in memory, as this can just as correctly be handled by running the algorithm at runtime (which is to call toupper() and tolower() on characters < 128). When used, a top level waf build will always locate the correct table - in the build tree or outside - due to relinking the installed binary. Andrew Bartlett --- lib/util/charset/codepoints.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/util') diff --git a/lib/util/charset/codepoints.c b/lib/util/charset/codepoints.c index 5dc76143e2..53febb8b5e 100644 --- a/lib/util/charset/codepoints.c +++ b/lib/util/charset/codepoints.c @@ -48,9 +48,11 @@ void load_case_tables(void) lowcase_table = map_file(talloc_asprintf(mem_ctx, "%s/lowcase.dat", get_dyn_CODEPAGEDIR()), 0x20000); talloc_free(mem_ctx); if (upcase_table == NULL) { + DEBUG(1, ("Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules\n")); upcase_table = (void *)-1; } if (lowcase_table == NULL) { + DEBUG(1, ("Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules\n")); lowcase_table = (void *)-1; } } -- cgit