- fixed 'I' to 'i' upper-to-lower mapping

https://forum.zdoom.org/viewtopic.php?t=64526
(patch by _mental_)
This commit is contained in:
drfrag 2019-05-02 12:10:03 +02:00
parent 59633d8c72
commit 369233c2cf

View file

@ -915,7 +915,7 @@ void InitLowerUpper()
{
auto lower = loweruppercase[i];
auto upper = loweruppercase[i + 1];
if (upperforlower[upper] == upper) lowerforupper[upper] = lower; // This mapping is ambiguous (see 0x0131 -> 0x0049, (small Turkish 'i' without dot.) so only pick the first match.
if (lowerforupper[upper] == upper) lowerforupper[upper] = lower; // This mapping is ambiguous (see 0x0131 -> 0x0049, (small Turkish 'i' without dot.) so only pick the first match.
if (upperforlower[lower] == lower) upperforlower[lower] = upper;
isuppermap[upper] = islowermap[lower] = true;
}