[cl-gd-devel] CL-GD and LispWorks 5.1: Loading images with extended characters in their pathnames?

Edi Weitz edi at agharta.de
Sun Sep 19 11:57:51 UTC 2010


Hi  Chris,

I don't see which of the characters in the file name would not have an
encoding in Latin1.  Is this really the file name you used?

The problem is, though, that UFFI doesn't allow you to specify an
encoding when converting Lisp strings to C strings.  This could
certainly be done in the LispWorks FLI directly and probably (I
haven't looked) in CFFI as well.  A real solution would be to
re-architect CL-GD to use an alternative to UFFI, but I don't have the
time to do it and I haven't used CL-GD for years anyway.

Cheers,
Edi.


On Fri, Sep 17, 2010 at 10:51 PM, Chris Perkins <cperkins at medialab.com> wrote:
> Hello,
>
> If I have a pathnamewith extended characters in its namestring (like
> curly quotes, etc), how do I get that image to load with CL-GD?
>
> Maybe I have to go diving into UFFI or the sources for GD itself, but I
> thought I'd ask here first, since it seems like this has probably come
> up already.
>
> Thanks for any assistance,
>
> Chris
>
>
>
> Example:  f => #P"/Users/cperkins/Pictures/image file names
> testing/Earth “fatter” copy.gif"
>
> (cl-gd:create-image-from-file f)
>
>
> Error: External format (:LATIN-1 :EOL-STYLE :LF) got error writing
> #<Pointer to type (:UNSIGNED :CHAR) = #x0102B008> at position 55: No
> encoding exists for character “.
>  1 (abort) Return to level 0.
>  2 Return to top loop level 0.
>
>
>
> _______________________________________________
> cl-gd-devel site list
> cl-gd-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/cl-gd-devel
>
>




More information about the Cl-gd-devel mailing list