Date: Thu, 12 May 2005 15:14:42 +0200 (CEST) Message-Id: <20050512.151442.98769669.andrieu at ijm.jussieu.fr> To: mihamina.rakotomandimby at etu.univ-orleans.fr Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: Problem with utf-8 ? From: Olivier Andrieu In-Reply-To: <1115885841.5249.3.camel at fctmp> References: <1115885841.5249.3.camel at fctmp> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Rakotomandimby (R12y) Mihamina" [Thu, 12 May 2005]: > Hi, > > I use mldonkey on a Fedora box, and it crashed after a while, with these > error messages: > > 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... > > What would you advice me to have it working on Fedora Core 3? Fix the app. GTK+ requires that strings are encoded in UTF-8. The app must do the conversion. See Glib.Convert.locale_to_utf8 . -- Olivier