[pygtk] Nul Teminated Strings and Text Buffers

Michael JasonSmith mpj17 at student.canterbury.ac.nz
Thu Jul 1 12:40:52 WST 2004


When calling the "insert_with_tags" method of a gtk.TextBuffer I am
getting errors along the lines of 
        Gtk-CRITICAL **: file gtktextbuffer.c: line 557
        (gtk_text_buffer_emit_insert): assertion `g_utf8_validate (text,
        len, NULL)' failed

I checked Bugzilla and there appears to be no open bugs relating to the
gtktextbuffer. By the looks of what appears in the text buffer, the
string to be is displayed is not nul-terminated, which the error message
above seems to confirm. I tried to hack around the problem by adding my
own nul-character to the end of the string, but the bug is too smart for
that!

Shall I go ahead an submit a bug into Bugzilla, or should I try
something else first?

-- 
Michael JasonSmith                                   http://www.ldots.org/



More information about the pygtk mailing list