Mercurial > gftp.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
183:9d42809f9fb4 | 184:65eb40fb4f03 |
---|---|
434 void | 434 void |
435 free_fdata (gftp_file * fle) | 435 free_fdata (gftp_file * fle) |
436 { | 436 { |
437 if (fle->file) | 437 if (fle->file) |
438 g_free (fle->file); | 438 g_free (fle->file); |
439 if (fle->utf8_file) | |
440 g_free (fle->utf8_file); | |
439 if (fle->user) | 441 if (fle->user) |
440 g_free (fle->user); | 442 g_free (fle->user); |
441 if (fle->group) | 443 if (fle->group) |
442 g_free (fle->group); | 444 g_free (fle->group); |
443 if (fle->attribs) | 445 if (fle->attribs) |
924 file_prefixstr = ""; | 926 file_prefixstr = ""; |
925 if (file_suffixstr == NULL) | 927 if (file_suffixstr == NULL) |
926 file_suffixstr = ""; | 928 file_suffixstr = ""; |
927 | 929 |
928 ret = g_strdup_printf ("%s %s %s %s%s%s", tempstr1, tempstr2, tstr, | 930 ret = g_strdup_printf ("%s %s %s %s%s%s", tempstr1, tempstr2, tstr, |
929 file_prefixstr, fle->file, file_suffixstr); | 931 file_prefixstr, |
932 fle->utf8_file != NULL ? fle->utf8_file : fle->file, | |
933 file_suffixstr); | |
930 | 934 |
931 g_free (tempstr1); | 935 g_free (tempstr1); |
932 g_free (tempstr2); | 936 g_free (tempstr2); |
933 | 937 |
934 return (ret); | 938 return (ret); |