comparison lib/misc.c @ 988:63555c9744c2

remote charset should be specified by each bookmark entry.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 14 Aug 2009 07:54:55 +0900
parents a490d94a5b8e
children
comparison
equal deleted inserted replaced
987:2f6924c67846 988:63555c9744c2
594 newreq->account = g_strdup (req->account); 594 newreq->account = g_strdup (req->account);
595 if (req->directory) 595 if (req->directory)
596 newreq->directory = g_strdup (req->directory); 596 newreq->directory = g_strdup (req->directory);
597 if (req->url_prefix) 597 if (req->url_prefix)
598 newreq->url_prefix = g_strdup (req->url_prefix); 598 newreq->url_prefix = g_strdup (req->url_prefix);
599 if (req->remote_charset)
600 newreq->remote_charset = g_strdup (req->remote_charset);
601
599 newreq->port = req->port; 602 newreq->port = req->port;
600 newreq->use_proxy = req->use_proxy; 603 newreq->use_proxy = req->use_proxy;
601 newreq->logging_function = req->logging_function; 604 newreq->logging_function = req->logging_function;
602 newreq->ai_family = req->ai_family; 605 newreq->ai_family = req->ai_family;
603 606
1164 1167
1165 1168
1166 void 1169 void
1167 gftp_locale_init (void) 1170 gftp_locale_init (void)
1168 { 1171 {
1172 setlocale (LC_ALL, "");
1173
1169 #ifdef HAVE_GETTEXT 1174 #ifdef HAVE_GETTEXT
1170
1171 setlocale (LC_ALL, "");
1172 textdomain ("gftp"); 1175 textdomain ("gftp");
1173 bindtextdomain ("gftp", LOCALE_DIR); 1176 bindtextdomain ("gftp", LOCALE_DIR);
1174 1177
1175 #if GLIB_MAJOR_VERSION > 1 1178 #if GLIB_MAJOR_VERSION > 1
1176 bind_textdomain_codeset ("gftp", "UTF-8"); 1179 bind_textdomain_codeset ("gftp", "UTF-8");