Re: [sqlite] sqlite3_create_collation_v2 and SQLITE_UTF16_ALIGNED

2009-05-09 Thread Florian Weimer
* D. Richard Hipp: > On May 3, 2009, at 11:15 AM, Florian Weimer wrote: > >> The documentation suggests that I can pass SQLITE_UTF16_ALIGNED. >> However, the logic in main.c:createCollation() assumes that >> SQLITE_UTF16_ALIGNED is ORed with another encoding flag value >> (presumably

Re: [sqlite] sqlite3_create_collation_v2 and SQLITE_UTF16_ALIGNED

2009-05-03 Thread D. Richard Hipp
On May 3, 2009, at 11:15 AM, Florian Weimer wrote: > The documentation suggests that I can pass SQLITE_UTF16_ALIGNED. > However, the logic in main.c:createCollation() assumes that > SQLITE_UTF16_ALIGNED is ORed with another encoding flag value > (presumably SQLITE_UTF16). If I specify

[sqlite] sqlite3_create_collation_v2 and SQLITE_UTF16_ALIGNED

2009-05-03 Thread Florian Weimer
The documentation suggests that I can pass SQLITE_UTF16_ALIGNED. However, the logic in main.c:createCollation() assumes that SQLITE_UTF16_ALIGNED is ORed with another encoding flag value (presumably SQLITE_UTF16). If I specify SQLITE_UTF16_ALIGNED alone, I end up with a crash due to a double free