Mercurial > gftp.yaz
diff lib/misc.c @ 845:8263cc35c027
2006-11-2 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/local.c lib/misc.c lib/protocols.c lib/rfc959.c
lib/sshv2.c - added gftp_filename_to_utf8() and
gftp_filename_from_utf8().
(gftp_string_from_utf8) - added argument that will force the local
encoding to be used.
author | masneyb |
---|---|
date | Fri, 03 Nov 2006 03:02:51 +0000 |
parents | 32dbed7e0dc4 |
children | 5e3005923374 |
line wrap: on
line diff
--- a/lib/misc.c Fri Nov 03 02:37:09 2006 +0000 +++ b/lib/misc.c Fri Nov 03 03:02:51 2006 +0000 @@ -874,7 +874,6 @@ char *file_prefixstr, char *file_suffixstr) { char *tempstr1, *tempstr2, *ret, tstr[50], *attribs, *utf8; - int old_encoding; size_t destlen; struct tm *lt; time_t t; @@ -902,10 +901,7 @@ if (file_suffixstr == NULL) file_suffixstr = ""; - old_encoding = request->use_local_encoding; - utf8 = gftp_string_from_utf8 (request, fle->file, &destlen); - request->use_local_encoding = old_encoding; - + utf8 = gftp_string_from_utf8 (request, 1, fle->file, &destlen); if (utf8 != NULL) { ret = g_strdup_printf ("%s %s %s %s%s%s", tempstr1, tempstr2, tstr,