summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-06-07 15:54:26 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-06-07 15:54:26 +0000
commit299a51ee8ced054c3d28f9c98f2cb6646c228549 (patch)
treec34487a00cf821faa6c69f80c9bb7d9aec022e6c
parent9b55e6b31c949b720dd6b48f0d8949079ec122a0 (diff)
leave original letter cases in ls-R also on win32.
git-svn-id: svn://tug.org/texlive/trunk@22851 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/kpathsea/ChangeLog4
-rw-r--r--Build/source/texk/kpathsea/hash.c12
2 files changed, 5 insertions, 11 deletions
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 <kakuto@fuk.kindai.ac.jp>
+
+ * hash.c: leave original letter cases also on win32.
+
2011-06-06 Karl Berry <karl@tug.org>
* 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;
}