diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 11:37:06 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 11:37:06 (GMT) |
commit | 8e4dd08f23c4c52d136c38943041c9b5f14eaf42 (patch) | |
tree | 62fe90a4ba2ef2e5ff1abda1dd8b604c16c5a244 /Modules/_sqlite/cursor.c | |
parent | b244d075fbb6894385e0f3cb451471051a80473b (diff) | |
parent | 1665d2c75fcfe5097983c13fdf66fd5e766890c2 (diff) | |
download | cpython-8e4dd08f23c4c52d136c38943041c9b5f14eaf42.zip cpython-8e4dd08f23c4c52d136c38943041c9b5f14eaf42.tar.gz cpython-8e4dd08f23c4c52d136c38943041c9b5f14eaf42.tar.bz2 |
Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
Diffstat (limited to 'Modules/_sqlite/cursor.c')
-rw-r--r-- | Modules/_sqlite/cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index 7f5c213..264ae45 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -55,8 +55,8 @@ static pysqlite_StatementKind detect_statement_type(const char* statement) dst = buf; *dst = 0; - while (isalpha(*src) && dst - buf < sizeof(buf) - 2) { - *dst++ = tolower(*src++); + while (Py_ISALPHA(*src) && dst - buf < sizeof(buf) - 2) { + *dst++ = Py_TOLOWER(*src++); } *dst = 0; |