Ingo Bormuth wrote:
> The following might be better.
>
> Code is: (mk-button :label (sb-ext:string-to-octets "foo äöüß bar" 
> :external-format :utf-8))
>
>
> The value of STRING is #(102 111 111 32 195 164 195 182 195 188               
>                                                                               
>               
>                          ...), which is not of type STRING.                   
>                                                                               
>               
>    [Condition of type SIMPLE-TYPE-ERROR]                                      
>                                                                               
>                                                                               
>                                                                               
>                             
Yes, now it's clear.
MK-BUTTON expects a Lisp string, being decent Lisp function, not some
FFI abomination ;)
So the solution is to place (sb-ext:string-to-octets "foo äöüß bar"
:external-format :utf-8) deeper, between MK-BUTTON and GTK-BUTTON-SET-LABEL.
As I used extensively only FFI part of cells-gtk, I didn't have to do it.

Good luck,
Dmitri
_______________________________________________
cells-gtk-devel site list
[email protected]
http://common-lisp.net/mailman/listinfo/cells-gtk-devel

Reply via email to