On Windows10 / 64, I installed CCL Lisp 1.11, downloaded sqlite3.dll, and then installed quicklisp and cl-sql. I get an error in the context of (German) special characters. This is what I tried in Emacs Slime Repl:
(clsql:connect '("C:/users/user/test.sqlite") :database-type :sqlite3 :encoding 'utf-8) (clsql:execute-command "create table name (name)") (clsql:execute-command "insert into name values ('ΓbermaΓ')") (format t "~A" (clsql:query "select * from name") )
Executing the last line calls the debugger:
Cannot allocate a STRING with NIL elements. Objects of type STRING can can have at most 16777215 elements in this implementation. [Condition of type CCL::VECTOR-SIZE-LIMITATION] ... Backtrace 0: (%STR-FROM-PTR
My Emacs.init.el is configured to use UTF-8:
(set-language-environment "utf-8") (setq inferior-lisp-program "C:/users/user/bin/ccl-1.11/wx86cl.exe -K utf-8") (setq slime-net-coding-system 'utf-8-unix) (prefer-coding-system 'utf-8) (set-terminal-coding-system 'utf-8) (setq default-buffer-file-coding-system 'utf-8)
If I try to create a DB.sqlite file without UTF-8 encoding, inserting and selecting data will work, but special characters are not displayed correctly.
source share