summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-04 11:35:28 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-04 11:35:28 (GMT)
commit1665d2c75fcfe5097983c13fdf66fd5e766890c2 (patch)
treed7ba49a40af240ba494f99eacf7bbfad32af0d3d /Modules/_sqlite
parent0fc80c0d5a76ed59f3db0b3f15e1e37ccc127ffb (diff)
downloadcpython-1665d2c75fcfe5097983c13fdf66fd5e766890c2.zip
cpython-1665d2c75fcfe5097983c13fdf66fd5e766890c2.tar.gz
cpython-1665d2c75fcfe5097983c13fdf66fd5e766890c2.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 97908a3..b9a4358 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;