crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.
http://www.crategus.com/books/cl-cffi-gtk
145 stars 33 forks source link

UTF8 vs byte mismatch in "insert-text" message #52

Open stacksmith opened 7 years ago

stacksmith commented 7 years ago

In gtk-text-buffer. I am not sure what to do with this one, but it wasted a lot of my time. The Lisp handler is invoked after CFFI converts the string to Lisp. But the len parameter is a byte count, the meaning of which is now lost, since we don't have bytes anymore. I think a character count would be more correct...

Ferada commented 7 years ago

Agreed this is an edge case. Perhaps the string conversion shouldn't actually be done automatically in case the user doesn't want that to happen?

Btw. are you on freenode? I'm wondering if work on this library can be a bit more organised, so feel free to come chat (I'm using ferada on there), I don't want to misappropriate the issue tracker here too much.