Mercurial > gftp.yaz
diff lib/sshv2.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 | 0cf4d8c46b82 |
line wrap: on
line diff
--- a/lib/sshv2.c Fri Nov 03 02:37:09 2006 +0000 +++ b/lib/sshv2.c Fri Nov 03 03:02:51 2006 +0000 @@ -175,7 +175,7 @@ char *utf8, *ret; size_t pathlen; - utf8 = gftp_string_from_utf8 (request, str, &pathlen); + utf8 = gftp_filename_from_utf8 (request, str, &pathlen); if (utf8 != NULL) addstr = utf8; else @@ -205,7 +205,7 @@ else path = gftp_build_path (request, request->directory, str, NULL); - utf8 = gftp_string_from_utf8 (request, path, len); + utf8 = gftp_filename_from_utf8 (request, path, len); if (utf8 != NULL) { g_free (path); @@ -1062,7 +1062,7 @@ if ((dir = sshv2_buffer_get_string (request, &message, 1)) == NULL) return (GFTP_EFATAL); - utf8 = gftp_string_to_utf8 (request, dir, &len); + utf8 = gftp_filename_to_utf8 (request, dir, &len); if (utf8 != NULL) { request->directory = utf8;