Commit 33b59c30 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.

Reported and diagnosed by Thomas Kluyver.
parent e5e5f3ae
......@@ -450,6 +450,7 @@ Bastian Kleineidam
Bob Kline
Matthias Klose
Jeremy Kloth
Thomas Kluyver
Kim Knapp
Lenny Kneler
Pat Knight
......
......@@ -50,6 +50,9 @@ Core and Builtins
Library
-------
- Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
- Issue #7689: Allow pickling of dynamically created classes when their
metaclass is registered with copy_reg. Patch by Nicolas M. Thiéry and
Craig Citro.
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment