Date: Thu, 12 May 2005 21:02:06 +0200 To: lablgtk at math.nagoya-u.ac.jp Subject: Re: Problem with utf-8 ? Message-ID: <20050512190206.GA2351 at gallu.homelinux.org> References: <1115885841.5249.3.camel at fctmp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1115885841.5249.3.camel at fctmp> From: Sylvain LE GALL Hello, On Thu, May 12, 2005 at 10:17:21AM +0200, Rakotomandimby (R12y) Mihamina wrote: > Hi, > > I use mldonkey on a Fedora box, and it crashed after a while, with these > error messages: > > [...] > > Exception Gdk.Error("attempt to use destroyed GdkPixmap") in > gpattern#update_row Pixmap > > [... the same error many times...] > > Exception Gdk.Error("attempt to use destroyed GdkPixmap") in > gpattern#update_row Pixmap > Exception Glib.Critical("Gtk", "file gtktextbuffer.c: line 557 > (gtk_text_buffer_emit_insert): assertion `g_utf8_validate (text, len, > NULL)' failed") in reader > > (process:621): Gtk-CRITICAL (recursed) **: file gtktextbuffer.c: line > 557 (gtk_text_buffer_emit_insert): assertion `g_utf8_validate (text, > len, NULL)' failed > aborting... > > > I now mldonkey uses gtk through lablgtk. > I compiled using ocaml 3.08.3 > > What would you advice me to have it working on Fedora Core 3? > > You didn't give the version of mldonkey you are using. I have submitted a patch to have the mldonkey-gui working with UTF-8 ( as the debian package maintainer ). It has been applied in 2.5.28.1, so if your are using a version < 2.5.28.1, you should upgrade. Regard Sylvain Le Gall ps: FYI the error comes from the fact that the core is sending NOT localized strings to the GUI which display it without encoding it. Typically : hostname and filename.