Re: trying to add interoperable foreign string support

Russell McManus <russell_mcmanus-/[email protected]> 17 Dec 2002 08:11:34 -0500
Newsgroups gmane.lisp.uffi.general
Message-ID <[email protected]>
"Hoehle, Joerg-Cyril" <[email protected]> writes:

> The problem which prevented me so far from implementing this is
> :null-terminated-p.  The implementation needs to know the number of
> terminating zero bytes. This depends on the encoding. If Lispworks
> only knows :unicode (as synonym for 2 bytes) and the rest is based
> on extensions of ASCII, like iso-8859-1, then it's easy for
> Lispworks. In CLISP, it's not so, as the number of zeroes may vary
> from 1 (iso-8859-1 to 4 (unicode32-big-endian) - how to know (need
> additional support function, e.g. encoding-zeroes)?

If encodings are specified by symbol in a known package, then you
could specify the termination policy via symbol property, and thus
avoid an additional function.

-russ