[Python-checkins] cpython (2.7): Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
antoine.pitrou
python-checkins at python.org
Tue Oct 4 13:41:46 CEST 2011
http://hg.python.org/cpython/rev/89713606b654
changeset: 72654:89713606b654
branch: 2.7
parent: 72646:05c58e0873f0
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Oct 04 13:38:04 2011 +0200
summary:
Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
files:
Misc/ACKS | 1 +
Misc/NEWS | 3 +++
Modules/_sqlite/cursor.c | 4 ++--
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -450,6 +450,7 @@
Bob Kline
Matthias Klose
Jeremy Kloth
+Thomas Kluyver
Kim Knapp
Lenny Kneler
Pat Knight
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -50,6 +50,9 @@
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.
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -55,8 +55,8 @@
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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list