Mercurial > gftp.yaz
diff lib/misc.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 | 75eebb3b0592 |
line wrap: on
line diff
--- a/lib/misc.c Mon Jun 16 16:32:24 2003 +0000 +++ b/lib/misc.c Tue Jun 17 02:02:42 2003 +0000 @@ -436,6 +436,8 @@ { if (fle->file) g_free (fle->file); + if (fle->utf8_file) + g_free (fle->utf8_file); if (fle->user) g_free (fle->user); if (fle->group) @@ -926,7 +928,9 @@ file_suffixstr = ""; ret = g_strdup_printf ("%s %s %s %s%s%s", tempstr1, tempstr2, tstr, - file_prefixstr, fle->file, file_suffixstr); + file_prefixstr, + fle->utf8_file != NULL ? fle->utf8_file : fle->file, + file_suffixstr); g_free (tempstr1); g_free (tempstr2);