summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-24 02:27:04 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-24 02:27:04 +0200
commit13cbc8430c90032f5351afd156632336c59e9674 (patch)
tree637b7ba36b8c7f8b34534bc0d2b6ff5c2879ef01 /Python/codecs.c
parentf638dd24d927078594f37a7895cc94c3a094096f (diff)
downloadcpython-13cbc8430c90032f5351afd156632336c59e9674.tar.gz
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 45d99291f1..1a3e45774c 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';