Felip Alàez Nadal wrote:
Hello:
The code I send just creates a button with an image on It. Be sure to run It from within the directory It creates.

--
Felip Alàez Nadal

_______________________________________________ ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user
When I try to run it I get the following error:

debugger invoked on a SB-INT:STREAM-ENCODING-ERROR:
  encoding error on stream #<SB-SYS:FD-STREAM for "descriptor 6" {9E04D39}>
  (:EXTERNAL-FORMAT :ASCII):
    the character with code 242 cannot be encoded.

However, I pretty much do the same thing you are doing:

     (let*
       ((img
        
         (xbut (make-instance 'button :master nil
                                                        :image (image-load img "x.ppm")))...

In this case I get an error because img is nil.     In your code, you do basically the same thing with the variable imatge.
I have tried making img a photo-image with (img (make-image)), and in that case the error goes away but the button appears with no image in it (and no other errors).   (I've used the ppm image before, so I know it's a good image).

I should note that I'm running this in SBCL on an AMD64 laptop running linux.

I'm sure this works.    I just can't figure out what I'm doing wrong.

Bill