First of all, try running your program with the environment variable G_BROKEN_FILENAMES defined to something:I'm using a GnomeFileEntry in a glade built interface. Any time I select a file name with a non-ascii character in it (such as '�'), I get all kinds of errors, and the full string is not displayed. Some of the errors I get are:
Gtk-CRITICAL **: file gtktextbuffer.c: line 476 (gtk_text_buffer_emit_insert): assertion `g_utf8_validate (text, len, NULL)' failed WARNING **: Invalid UTF8 string passed to pango_layout_set_text()
Any ideas as to what is happening?
export G_BROKEN_FILENAMES=1
python foo.py
That makes the g_filename_{from,to}_utf8 functions use the locale codeset as the encoding for filenames. If things still don't work, it is probably a bug in libgnomeui (which should be reported).
Of course, in the long term you should be using UTF-8 filenames ...
James.
-- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
