sqlite3-xconv/test

16 lines
269 B
Plaintext
Raw Permalink Normal View History

2017-03-12 16:49:47 +00:00
#!/mod/bin/jimsh
source /mod/webif/lib/setup
require hexdump
set s "home made p\303at\302e"
hexdump $s
set db [sqlite3.open ":memory:"]
2022-09-24 00:12:11 +00:00
$db extension /mod/lib/sql/xconv.so
2017-03-12 16:49:47 +00:00
set ret [$db query {select xconv('%s') as xconv} $s]
lassign [lindex $ret 0] x t
hexdump $t