comparison src/protocols/yahoo/yahoo_filexfer.c @ 7827:ee32e030c9be

[gaim-migrate @ 8479] marv asserts that these character set conversions are more correct than the previous yahoo conversions, which assumed that pretty much everything was UTF-8. I believe him. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Wed, 10 Dec 2003 16:48:23 +0000
parents 5f0bb52c0609
children fa6395637e2c
comparison
equal deleted inserted replaced
7826:5ba07997ade3 7827:ee32e030c9be
187 static void yahoo_xfer_init(GaimXfer *xfer) 187 static void yahoo_xfer_init(GaimXfer *xfer)
188 { 188 {
189 struct yahoo_xfer_data *xfer_data; 189 struct yahoo_xfer_data *xfer_data;
190 GaimConnection *gc; 190 GaimConnection *gc;
191 GaimAccount *account; 191 GaimAccount *account;
192 struct yahoo_data *yd;
192 193
193 xfer_data = xfer->data; 194 xfer_data = xfer->data;
194 gc = xfer_data->gc; 195 gc = xfer_data->gc;
196 yd = gc->proto_data;
195 account = gaim_connection_get_account(gc); 197 account = gaim_connection_get_account(gc);
196 198
197 if (gaim_xfer_get_type(xfer) == GAIM_XFER_SEND) { 199 if (gaim_xfer_get_type(xfer) == GAIM_XFER_SEND) {
198 if (gaim_proxy_connect(account, gaim_account_get_string(account, "xfer_host", YAHOO_XFER_HOST), 200 if (gaim_proxy_connect(account, gaim_account_get_string(account, "xfer_host", YAHOO_XFER_HOST),
199 gaim_account_get_int(account, "xfer_port", YAHOO_XFER_PORT), 201 gaim_account_get_int(account, "xfer_port", YAHOO_XFER_PORT),
200 yahoo_sendfile_connected, xfer) == -1) 202 yahoo_sendfile_connected, xfer) == -1)
201 { 203 {
202 gaim_notify_error(gc, NULL, _("File Transfer Aborted"), 204 gaim_notify_error(gc, NULL, _("File Transfer Aborted"),
203 _("Unable to establish file descriptor.")); 205 _("Unable to establish file descriptor."));
204 gaim_xfer_cancel_remote(xfer); 206 gaim_xfer_cancel_remote(xfer);
205 } 207 }
206
207 } else { 208 } else {
208 xfer->fd = gaim_proxy_connect(account, xfer_data->host, xfer_data->port, 209 xfer->fd = gaim_proxy_connect(account, xfer_data->host, xfer_data->port,
209 yahoo_receivefile_connected, xfer); 210 yahoo_receivefile_connected, xfer);
210 if (xfer->fd == -1) { 211 if (xfer->fd == -1) {
211 gaim_notify_error(gc, NULL, _("File Transfer Aborted"), 212 gaim_notify_error(gc, NULL, _("File Transfer Aborted"),