changeset 185:cc94bd62d290

2003-6-16 Brian Masney <masneyb@gftp.org> * lib/protocols.c (_gftp_get_next_charset) - set the separator for remote charsets to be a comma * lib/options.h - updated description of remote charsets
author masneyb
date Tue, 17 Jun 2003 10:13:26 +0000
parents 65eb40fb4f03
children 13ca1defdc75
files ChangeLog lib/options.h lib/protocols.c
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jun 17 02:02:42 2003 +0000
+++ b/ChangeLog	Tue Jun 17 10:13:26 2003 +0000
@@ -1,4 +1,9 @@
 2003-6-16 Brian Masney <masneyb@gftp.org>
+	* lib/protocols.c (_gftp_get_next_charset) - set the separator for
+	remote charsets to be a comma
+
+	* lib/options.h - updated description of remote charsets
+
 	* 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
@@ -1003,7 +1008,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.90 2003/06/17 02:02:40 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.91 2003/06/17 10:13:21 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/lib/options.h	Tue Jun 17 02:02:42 2003 +0000
+++ b/lib/options.h	Tue Jun 17 10:13:26 2003 +0000
@@ -47,7 +47,7 @@
    GFTP_PORT_GTK, NULL},
   {"remote_charsets", N_("Remote Character Sets:"), 
    gftp_option_type_text, "", NULL, 0,
-   N_("The character sets to try to convert the remote filenames to the current locale"), 
+   N_("This is a comma separated list of charsets to try to convert the remote messages to the current locale"), 
    GFTP_PORT_ALL, NULL},
 
   {"append_transfers", N_("Append file transfers"), 
--- a/lib/protocols.c	Tue Jun 17 02:02:42 2003 +0000
+++ b/lib/protocols.c	Tue Jun 17 10:13:26 2003 +0000
@@ -345,9 +345,9 @@
 
   ret = *curpos;
   if (*curpos != remote_charsets)
-    *(*curpos - 1) = '\0';
-
-  if ((endpos = strchr (*curpos, ' ')) == NULL)
+    *(*curpos - 1) = ',';
+
+  if ((endpos = strchr (*curpos, ',')) == NULL)
     *curpos += strlen (*curpos);
   else
     {
@@ -401,6 +401,8 @@
           request->iconv_initialized = 1;
           break;
         }
+
+      /* FIXME - fix NUL character in remote_charsets */
     }
 
   return (ret);