This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jeremybanks
Recipients jeremybanks
Date 2011-07-14.23:23:41
SpamBayes Score 3.2237425e-05
Marked as misclassified No
Message-id <1310685822.64.0.0540241463817.issue12569@psf.upfronthosting.co.za>
In-reply-to
Content
I was experimenting with the sqlite3 library and noticed that using certain strings as identifiers cause bus errors or segfaults. I'm not very familiar with unicode, but after some Googling I'm pretty sure this happens when I use non-characters or surrogate characters incorrectly.

This causes a bus error:

import sqlite3
c = sqlite3.connect(":memory:")
table_name = '"' + chr(0xD800) + '"'
c.execute("create table " + table_name + " (bar)")

The equivalent Python 2 (replacing chr with unichr) works properly.
History
Date User Action Args
2011-07-14 23:23:42jeremybankssetrecipients: + jeremybanks
2011-07-14 23:23:42jeremybankssetmessageid: <1310685822.64.0.0540241463817.issue12569@psf.upfronthosting.co.za>
2011-07-14 23:23:42jeremybankslinkissue12569 messages
2011-07-14 23:23:41jeremybankscreate