From 299a51ee8ced054c3d28f9c98f2cb6646c228549 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Tue, 7 Jun 2011 15:54:26 +0000 Subject: leave original letter cases in ls-R also on win32. git-svn-id: svn://tug.org/texlive/trunk@22851 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 4 ++++ Build/source/texk/kpathsea/hash.c | 12 +----------- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 9d6d8f36db5..a1e63f0bcd7 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,7 @@ +2011-06-08 Akira Kakuto + + * hash.c: leave original letter cases also on win32. + 2011-06-06 Karl Berry * texmf.cnf (TEXINPUTS.context): No trailing comma, per Taco. diff --git a/Build/source/texk/kpathsea/hash.c b/Build/source/texk/kpathsea/hash.c index 868e03893c4..49fa50b3797 100644 --- a/Build/source/texk/kpathsea/hash.c +++ b/Build/source/texk/kpathsea/hash.c @@ -26,16 +26,6 @@ /* The hash function. We go for simplicity here. */ /* All our hash tables are related to filenames. */ -#ifdef MONOCASE_FILENAMES -#if defined(WIN32) && !defined(__i386_pc_gnu__) -/* This is way faster under Win32. */ -#define TRANSFORM(x) ((unsigned)CharLower((LPTSTR)(BYTE)(x))) -#else -#define TRANSFORM(x) (tolower(x)) -#endif -#else -#define TRANSFORM(x) (x) -#endif static unsigned hash (hash_table_type table, const_string key) @@ -45,7 +35,7 @@ hash (hash_table_type table, const_string key) /* Our keys aren't often anagrams of each other, so no point in weighting the characters. */ while (*key != 0) - n = (n + n + TRANSFORM (*key++)) % table.size; + n = (n + n + *key++) % table.size; return n; } -- cgit v1.2.3