Kaydet (Commit) 1665d2c7 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

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

Reported and diagnosed by Thomas Kluyver.
üst 0fc80c0d
...@@ -488,6 +488,7 @@ Bastian Kleineidam ...@@ -488,6 +488,7 @@ Bastian Kleineidam
Bob Kline Bob Kline
Matthias Klose Matthias Klose
Jeremy Kloth Jeremy Kloth
Thomas Kluyver
Kim Knapp Kim Knapp
Lenny Kneler Lenny Kneler
Pat Knight Pat Knight
......
...@@ -36,6 +36,9 @@ Core and Builtins ...@@ -36,6 +36,9 @@ Core and Builtins
Library Library
------- -------
- Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
- Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation - Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation
if the underlying raw stream is unseekable, even if the seek could be if the underlying raw stream is unseekable, even if the seek could be
satisfied using the internal buffer. Patch by John O'Connor. satisfied using the internal buffer. Patch by John O'Connor.
......
...@@ -55,8 +55,8 @@ static pysqlite_StatementKind detect_statement_type(const char* statement) ...@@ -55,8 +55,8 @@ static pysqlite_StatementKind detect_statement_type(const char* statement)
dst = buf; dst = buf;
*dst = 0; *dst = 0;
while (isalpha(*src) && dst - buf < sizeof(buf) - 2) { while (Py_ISALPHA(*src) && dst - buf < sizeof(buf) - 2) {
*dst++ = tolower(*src++); *dst++ = Py_TOLOWER(*src++);
} }
*dst = 0; *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