[Ecls-list] UFFI and unicode
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Sun May 17 13:05:23 UTC 2009
On Sun, May 10, 2009 at 12:12 AM, Waldek Hebisch
<hebisch at math.uni.wroc.pl> wrote:
> I have noticed that in Unicode enabled ECL with-cstring fails
> when given a Lisp string -- it wants only a base-string.
> Is this intended behavoiur?
> BTW: with-cstring works fine if I coerce argunent to base-string.
No, I just missed the part of coercing strings to base strings.
Juanjo
$ cat foo.lisp
(FFI:DEF-FUNCTION ("puts" G130) ((G129 :CSTRING)) :RETURNING :INT)
(DEFUN FOO (ST) (FFI:WITH-CSTRING (G129 ST) (G130 G129)))
(foo (make-string 8 :initial-element #\.))
$ ecl
> (compile-file "foo.lisp")
[...]
> (load "foo")
;;; Loading #P"/Users/jjgarcia/src/ecl/build/foo.fas"
........
#P"/Users/jjgarcia/src/ecl/build/foo.fas"
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28009 (Spain)
http://juanjose.garciaripoll.googlepages.com
More information about the ecl-devel
mailing list