Created
July 5, 2012 11:24
-
-
Save sixtus/3053123 to your computer and use it in GitHub Desktop.
Compiling sqlite with ICU support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./configure CFLAGS="-Os -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_ICU -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE=2 `icu-config --cppflags`" LDFLAGS="`icu-config --ldflags`" LIBS="-licudata -licui18n -licuio -licule -liculx -licutu -licuuc" | |
$ make -j4 && make install | |
$ sqlite3 | |
sqlite> select icu_load_collation('de_DE', 'de_DE'); | |
sqlite> create table t1(name collate de_DE); | |
sqlite> insert into t1 values('a'), values('ä'), values('o'), values('ö'); | |
sqlite> select * from t1 order by name desc; | |
ö | |
o | |
ä | |
a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good