commit | 44b3b5457a8af636504940f508b2888f6e080ca7 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Oct 04 13:55:37 2011 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Oct 04 13:55:37 2011 +0200 |
tree | dbb135c9572e914afbf996dde8f5aa4e15bdd593 | |
parent | ace2ccf387fbe751e09fdb4bd507a3702b637d8a [diff] [blame] |
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale. (except in the strop module, which is deprecated anyway)
diff --git a/Modules/binascii.c b/Modules/binascii.c index 2d91b7f..8334fe5 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c
@@ -1105,8 +1105,8 @@ if (isdigit(c)) return c - '0'; else { - if (isupper(c)) - c = tolower(c); + if (Py_ISUPPER(c)) + c = Py_TOLOWER(c); if (c >= 'a' && c <= 'f') return c - 'a' + 10; }