problem reading a non-english file



The following pice (obviously it has other widgets, but I think they
aren't relevant) of code works right with an english file, but when the
file has caracters as "ñ" fails sayin the error

(gtklilo:11289): Gtk-CRITICAL **: file gtktextbuffer.c: line 532
(gtk_text_buffer_insert_at_cursor): assertion `text != NULL' failed


GtkWidget *view_en;
GIOChannel *manpage_en;
GtkTextBuffer *buffer_en;

view_en = gtk_text_view_new();
buffer_en = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view_en));

g_io_channel_read_to_end(manpage_en, &cadena_en, NULL, NULL);	
gtk_text_buffer_insert_at_cursor(buffer_en, cadena_en,-1);
-- 
The chains are broken and the door is open wide
Our eyes adjusting to the light that was denied
And the voices ringing out now
Sing of freedom
And bring a sense of wonder

	http://www.es.debian.org/intro/about.es.html

Attachment: signature.asc
Description: Esta parte del mensaje esta firmada digitalmente



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]