Hi Luís,<br><br>I've finally sat down and corrected the changes i had made to my cffi-uffi-compat.lisp file (basically copied/pasted the missing definitions from UFFI) and did the things you suggested<br><br>a) added a dependency on babel to the cffi-uffi-compat.asd file<br>
<br>b) added the foreign-encoded-octet-count function at the end of the file and added to list of exported symbols<br><br>c) added an extra key parameter (encoding) to the function convert-from-foreign-string, i believe this the parameter name was changed from locale to encoding on the new UFFI version, i could have simply replaced the locale parameter but since they aren't even being used on the function body i thought it was better to keep both and avoid breaking compatibility with other code.<br>
<br>Please give it a look, i know it's not much work but since i had to do it for my client's webapp here goes a small patch with my modifications. Hope this is helpful for anyone.<br><br><br>Cheers,<br><br>Alexandre Paes<br>
<br><br><div class="gmail_quote">On Sat, Aug 7, 2010 at 7:23 AM, Luís Oliveira <span dir="ltr"><<a href="mailto:luismbo@gmail.com">luismbo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello Alexandre,<br>
<br>
On Fri, Aug 6, 2010 at 12:27 PM, Alexandre Paes<br>
<div class="im"><<a href="mailto:alex.paes@streetdogstudio.com">alex.paes@streetdogstudio.com</a>> wrote:<br>
</div><div class="im">> Is this something i'm doing wrong or the cffi-uffi-compat package is not<br>
> fully uffi-2.0.0 compatible?<br>
<br>
</div>UFFI 2.0.0 is indeed more recent than the latest uffi-compat.<br>
<div class="im"><br>
<br>
> Any ideas of how i should tackle this issue?<br>
<br>
</div>You could implement the new UFFI 2.0.0 functions. That would be great.<br>
<br>
You should be able to use what's in CFFI and Babel to do so. (For<br>
example, if UFFI 2 does provide a string-to-octets function, you<br>
should change CFFI-UFFI-COMPAT to depend on Babel and use<br>
babel:string-to-octets to implement uffi:string-to-octets.)<br>
<br>
Cheers,<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Luís Oliveira<br>
<a href="http://r42.eu/%7Eluis/" target="_blank">http://r42.eu/~luis/</a><br>
</div></div></blockquote></div><br>