Hi,
as said in my previous post (I hope not boring you ) I'm working on a
code editor based on GtkTextBuffer and GtkTextView; the method for load
a file is something like this:
try:
file=open(self.name,'r')
text=file.read()
start=self.buffer.get_start_iter()
self.buffer.insert(start,text,-1)
self.set_save_point()
except:
do somethings
Usually everythings works as supposed but sometimes I have the following
error:
editor(pid:1549): Gtk-CRITICAL **: file gtktextbuffer.c line 476
(gtk_text_buffer_emit_insert): assertion 'g_utf8_validate (text, len,
NULL)' failed
The files are normal text file; where is the error?
(gtk2 1.3.14 python2.2 pygtk 1.99.7)
Thank you!
Pier
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk