summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-04 11:38:04 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-04 11:38:04 (GMT)
commitace2ccf387fbe751e09fdb4bd507a3702b637d8a (patch)
treedf4a44d96dcf05f6f53e92a498925932c60bb79e /Modules/_sqlite
parent09debc9a5ba53c461f8f0cf8024e76af153cabf5 (diff)
downloadcpython-ace2ccf387fbe751e09fdb4bd507a3702b637d8a.zip
cpython-ace2ccf387fbe751e09fdb4bd507a3702b637d8a.tar.gz
cpython-ace2ccf387fbe751e09fdb4bd507a3702b637d8a.tar.bz2
Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 26e3307..94c3f40 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -55,8 +55,8 @@ static pysqlite_StatementKind detect_statement_type(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;