[Openmcl-devel] Unicode UTF-8 problems with UFFI on Clozure CL

Victor bobbie at ua.fm
Wed Oct 16 10:03:34 PDT 2013


Hi!

I've stuck into a problem with unicode strings handling in the
UFFI. At some point UFFI corrupts UTF-8 encoded string (I guess that
this is a problem in uffi:convert-to-foreign-string function):

(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"

Does anybody else have this problem? Are there any workarounds ready
to be used or possible fixes?

I am working on Ubuntu (but saw this problem reproduce on Windows as well).
Clozure Common Lisp Version 1.9-r15756

Thanks,
Victor



More information about the Openmcl-devel mailing list