diff src/gtk/misc-gtk.c @ 184:65eb40fb4f03

2003-6-16 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/misc.c lib/options.h lib/protocols.c src/gtk/misc-gtk.c - added remote_charsets option. Whenever a file is read in that is not in UTF-8, it will first attempt to convert it from the local charset, and if that fails, it will try each of the locales in this list. I have no idea if this even works, so if someone can test this, please let me know.
author masneyb
date Tue, 17 Jun 2003 02:02:42 +0000
parents 33b394ebba68
children 13ca1defdc75
line wrap: on
line diff
--- a/src/gtk/misc-gtk.c	Mon Jun 16 16:32:24 2003 +0000
+++ b/src/gtk/misc-gtk.c	Tue Jun 17 02:02:42 2003 +0000
@@ -770,7 +770,10 @@
    
   gtk_clist_set_pixmap (GTK_CLIST (wdata->listbox), clist_num, 0, pix, bitmap);
 
-  if (fle->file)
+  if (fle->utf8_file)
+    gtk_clist_set_text (GTK_CLIST (wdata->listbox), clist_num, 1, 
+                        fle->utf8_file);
+  else if (fle->file)
     gtk_clist_set_text (GTK_CLIST (wdata->listbox), clist_num, 1, fle->file);
 
   if (fle->attribs && (*fle->attribs == 'b' || *fle->attribs == 'c'))