I find the "len" parameter to some functions in GTK2.TextBuffer rather puzzling.
set_text("abcdefghij", 7) - gives 7 characters in the buffer set_text("äbcdefghij", 7) - gives just 6 characters set_text("\u1d8fbcdefghij", 7) - down to 5 characters
This seems like complete nonsense. Why do we require the parameter in the first place?