Mercurial > gftp.yaz
diff 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 |
line wrap: on
line diff
--- a/lib/misc.c Wed Apr 08 11:07:35 2009 +0000 +++ b/lib/misc.c Fri Aug 14 07:54:55 2009 +0900 @@ -596,6 +596,9 @@ newreq->directory = g_strdup (req->directory); if (req->url_prefix) newreq->url_prefix = g_strdup (req->url_prefix); + if (req->remote_charset) + newreq->remote_charset = g_strdup (req->remote_charset); + newreq->port = req->port; newreq->use_proxy = req->use_proxy; newreq->logging_function = req->logging_function; @@ -1166,9 +1169,9 @@ void gftp_locale_init (void) { -#ifdef HAVE_GETTEXT + setlocale (LC_ALL, ""); - setlocale (LC_ALL, ""); +#ifdef HAVE_GETTEXT textdomain ("gftp"); bindtextdomain ("gftp", LOCALE_DIR);
