Add a test for issue #1813: getlocale() failing under a Turkish locale

(not a problem under 3.x)
This commit is contained in:
Antoine Pitrou 2011-07-24 02:41:54 +02:00
commit 5a24d82941
4 changed files with 30 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';