Mercurial > pidgin.yaz
changeset 25535:df1678b8bd51
- filename in filetransfer should be utf8 in oscar.
- minor build fix in gg.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 13 Jul 2007 13:42:25 +0000 |
parents | 79e5176274b4 |
children | 4bd16a73769c |
files | libpurple/protocols/gg/lib/http.c libpurple/protocols/oscar/oft.c |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/gg/lib/http.c Fri Jul 13 06:26:10 2007 +0000 +++ b/libpurple/protocols/gg/lib/http.c Fri Jul 13 13:42:25 2007 +0000 @@ -44,6 +44,7 @@ #include "compat.h" #include "libgadu.h" +#include <glib.h> /* * gg_http_connect() // funkcja pomocnicza
--- a/libpurple/protocols/oscar/oft.c Fri Jul 13 06:26:10 2007 +0000 +++ b/libpurple/protocols/oscar/oft.c Fri Jul 13 13:42:25 2007 +0000 @@ -680,7 +680,15 @@ strncpy((gchar *)conn->xferdata.idstring, "OFT_Windows ICBMFT V1.1 32", 31); conn->xferdata.modtime = 0; conn->xferdata.cretime = 0; - xfer->filename = g_path_get_basename(xfer->local_filename); + { /* yaz */ + guchar *tmp = NULL; + size_t dummy; + tmp = botch_utf(xfer->filename, strlen(xfer->filename), &dummy); + if(tmp){ + purple_xfer_set_filename(xfer, (char *)tmp); + g_free(tmp); + } + } conn->xferdata.name = (guchar *)g_strdup(xfer->filename); conn->xferdata.name_length = strlen(xfer->filename);