[PATCH 2/8] Use UTF8 when available.



---
 daemon/gvfsbackendftp.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index 482ec21..6c50772 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -756,6 +756,9 @@ ftp_connection_use (FtpConnection *conn)
   else
     conn->features = FTP_FEATURES_DEFAULT;
 
+  if (conn->features & FTP_FEATURE_UTF8)
+    ftp_connection_send (conn, 0, "OPTS UTF8 ON");
+
   /* RFC 2428 suggests to send this to make NAT routers happy */
   if (conn->features & FTP_FEATURE_EPSV)
     ftp_connection_send (conn, 0, "EPSV ALL");
-- 
1.5.6.5



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]