When I try to insert text in a TextBuffer TextView, CMD displays the following error:
(textEditor.exe: 696): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion g_utf8_validate (text, len, NULL) 'failed
Source example (C ++ and gtkmm):
Glib::RefPtr<Gtk::TextBuffer> refTextBuffer = textView->get_buffer();
refTextBuffer->set_text("\xA4");
refTextBuffer->insert_at_cursor("ñ");
source
share