Re: Migrating from UFFI to CFFI
Victor <[email protected]> Wed, 16 Oct 2013 20:07:00 +0300
| Newsgroups | gmane.lisp.clsql.general |
|---|---|
| Message-ID | <op.w414hyl34lizsz@vanyakin-nb> |
On Thu, 10 Oct 2013 11:51:20 +0300, Victor <[email protected]> wrote: ..... > The second problem is that on ClozureCL v1.9 CLSQL-SQLITE3 corrupts > unicode strings when they are read and stored to the database. > > Setting uffi:*default-foreign-encoding* to :utf-8 solves the "read" > part but strings are still corrupted when stored to the database. Hi, the problem is relatively easy to reproduce: (uffi:convert-from-foreign-string (uffi:convert-to-foreign-string "abc")) "abc" ? (uffi:convert-from-foreign-string (uffi:convert-to-foreign-string "абв")) "^Z^Z^Z" I suspect that the problem is in the uffi:convert-to-foreign-string function. I've asked this question on the openmcl-devel mailing list: http://clozure.com/pipermail/openmcl-devel/2013-October/014572.html hope that this problem will be fixed. Thanks, Victor _______________________________________________ CLSQL mailing list [email protected] http://lists.b9.com/cgi-bin/mailman/listinfo/clsql