From cperkins at medialab.com Fri Sep 17 20:51:05 2010 From: cperkins at medialab.com (Chris Perkins) Date: Fri, 17 Sep 2010 13:51:05 -0700 Subject: [cl-gd-devel] CL-GD and LispWorks 5.1: Loading images with extended characters in their pathnames? Message-ID: <4C93D4B9.6040104@medialab.com> 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 # at position 55: No encoding exists for character ?. 1 (abort) Return to level 0. 2 Return to top loop level 0. From edi at agharta.de Sun Sep 19 11:57:51 2010 From: edi at agharta.de (Edi Weitz) Date: Sun, 19 Sep 2010 13:57:51 +0200 Subject: [cl-gd-devel] CL-GD and LispWorks 5.1: Loading images with extended characters in their pathnames? In-Reply-To: <4C93D4B9.6040104@medialab.com> References: <4C93D4B9.6040104@medialab.com> Message-ID: 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 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 > # 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 > >