Message140381
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. |
|
Date |
User |
Action |
Args |
2011-07-14 23:23:42 | jeremybanks | set | recipients:
+ jeremybanks |
2011-07-14 23:23:42 | jeremybanks | set | messageid: <1310685822.64.0.0540241463817.issue12569@psf.upfronthosting.co.za> |
2011-07-14 23:23:42 | jeremybanks | link | issue12569 messages |
2011-07-14 23:23:41 | jeremybanks | create | |
|