Issue #1813: Fix codec lookup under Turkish locales.

This commit is contained in:
Antoine Pitrou 2011-07-24 02:27:04 +02:00
parent 216a3bc36d
commit cf9d3c08c8
3 changed files with 17 additions and 1 deletions

View file

@ -69,7 +69,7 @@ PyObject *normalizestring(const char *string)
if (ch == ' ')
ch = '-';
else
ch = tolower(Py_CHARMASK(ch));
ch = Py_TOLOWER(Py_CHARMASK(ch));
p[i] = ch;
}
p[i] = '\0';