diff Python/codecs.c @ 71489:92d02de91cc9 3.2

Issue #1813: Fix codec lookup under Turkish locales.
author Antoine Pitrou <solipsis@pitrou.net>
date Sun, 24 Jul 2011 02:27:04 +0200
parents fc76e8c617dc
children 46b245f03f54 8beaa9a37387
line wrap: on
line diff
--- a/Python/codecs.c	Sat Jul 23 22:33:39 2011 +0200
+++ b/Python/codecs.c	Sun Jul 24 02:27:04 2011 +0200
@@ -69,7 +69,7 @@
         if (ch == ' ')
             ch = '-';
         else
-            ch = tolower(Py_CHARMASK(ch));
+            ch = Py_TOLOWER(Py_CHARMASK(ch));
         p[i] = ch;
     }
     p[i] = '\0';