[issue8195] Crash in sqlite3.create_collation() with a string non encodable to utf8

2010-04-22 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r80349 (py3k), r80351 (3.1). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8195] Crash in sqlite3.create_collation() with a string non encodable to utf8

2010-03-21 Thread STINNER Victor
STINNER Victor added the comment: My first sentence doesn't mean anything! I wanted to write: sqlite.connect(":memory:").create_collation, "\uDC80", collation_cb) crashs because _PyUnicode_AsString() returns NULL on error, and the result is not checked. -- __

[issue8195] Crash in sqlite3.create_collation() with a string non encodable to utf8

2010-03-21 Thread STINNER Victor
STINNER Victor added the comment: (oops, my patch included tabulations!) -- Added file: http://bugs.python.org/file16617/sqlite_collation-py3k.patch ___ Python tracker ___ __

[issue8195] Crash in sqlite3.create_collation() with a string non encodable to utf8

2010-03-21 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16616/sqlite_collation-py3k.patch ___ Python tracker ___ ___ Python-bugs-l

[issue8195] Crash in sqlite3.create_collation() with a string non encodable to utf8

2010-03-21 Thread STINNER Victor
New submission from STINNER Victor : sqlite.connect(":memory:").create_collation, "\uDC80", collation_cb) because _PyUnicode_AsString() returns NULL and error, and the result is not checked. Attached patch fixes the crash. I didn't checked if the problem does also concern Python 2.x.