1. Carl Meyer
  2. cpython

Commits

Antoine Pitrou  committed 652e2da Merge

Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.

  • Participants
  • Parent commits dc21b26, 4695558
  • Branches default

Comments (0)

Files changed (3)

File Misc/ACKS

View file
  • Ignore whitespace
 Bob Kline
 Matthias Klose
 Jeremy Kloth
+Thomas Kluyver
 Kim Knapp
 Lenny Kneler
 Pat Knight

File Misc/NEWS

View file
  • Ignore whitespace
 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
   if the underlying raw stream is unseekable, even if the seek could be
   satisfied using the internal buffer.  Patch by John O'Connor.

File Modules/_sqlite/cursor.c

View file
  • Ignore whitespace
 
     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;