diff options
Diffstat (limited to 'Build/source/texk/kpathsea/hash.c')
-rw-r--r-- | Build/source/texk/kpathsea/hash.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/hash.c b/Build/source/texk/kpathsea/hash.c index 49fa50b3797..8232eae5ac4 100644 --- a/Build/source/texk/kpathsea/hash.c +++ b/Build/source/texk/kpathsea/hash.c @@ -35,7 +35,13 @@ 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 + *key++) % table.size; +#if defined(WIN32) + if (IS_KANJI(key)) { + n = (n + n + (unsigned)(*key++)) % table.size; + n = (n + n + (unsigned)(*key++)) % table.size; + } else +#endif + n = (n + n + TRANSFORM (*key++)) % table.size; return n; } |