summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-24 00:41:54 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-24 00:41:54 (GMT)
commit5a24d82941cec6c207433d75c1120bf4a8438793 (patch)
treef6ff4dc8a76ff2225cf2bd371088733e5f1ef1f3 /Python
parent8dbd8573e513248ca4c105d0f580f47e79ab9ec8 (diff)
parent0e3c5a828e65f4f5821dad0e7b0ff4ca9f62f9d3 (diff)
downloadcpython-5a24d82941cec6c207433d75c1120bf4a8438793.zip
cpython-5a24d82941cec6c207433d75c1120bf4a8438793.tar.gz
cpython-5a24d82941cec6c207433d75c1120bf4a8438793.tar.bz2
Add a test for issue #1813: getlocale() failing under a Turkish locale
(not a problem under 3.x)
Diffstat (limited to 'Python')
-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';