summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-24 00:27:04 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-24 00:27:04 (GMT)
commitcf9d3c08c85e659a322d24467fc972959e326c9a (patch)
treee1faa4c123870921ec03fcbe14811f449c143845 /Python/codecs.c
parent216a3bc36d31df71544fd9a11b98fca4efeb8182 (diff)
downloadcpython-cf9d3c08c85e659a322d24467fc972959e326c9a.zip
cpython-cf9d3c08c85e659a322d24467fc972959e326c9a.tar.gz
cpython-cf9d3c08c85e659a322d24467fc972959e326c9a.tar.bz2
Issue #1813: Fix codec lookup under Turkish locales.
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 45d9929..1a3e457 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -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';