comparison src/protocols/yahoo/yahoo.c @ 3642:5e50f6746509

[gaim-migrate @ 3766] (10:16:03) deryni: we're fully 'compliant'? (sorry if that betrays some underlying stupidity) (10:16:55) Paco-Paco: yes (10:17:24) Paco-Paco: provided the user has the font, on any of the services supporting unicode we should support every known language in the world :-) (10:17:36) Paco-Paco: well, as soon as we have a proper utf-8 input widget committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 11 Oct 2002 14:19:24 +0000
parents 1c39909fb476
children 34c95669952f
comparison
equal deleted inserted replaced
3641:e2391338c394 3642:5e50f6746509
602 continue; 602 continue;
603 } 603 }
604 msg[j++] = m[i]; 604 msg[j++] = m[i];
605 } 605 }
606 msg[j] = 0; 606 msg[j] = 0;
607 serv_got_im(gc, from, utf8_to_str(msg), 0, tm, -1); 607 serv_got_im(gc, from, g_strdup(msg), 0, tm, -1);
608 } else if (pkt->status == 2) { 608 } else if (pkt->status == 2) {
609 do_error_dialog(_("Your Yahoo! message did not get sent."), NULL, GAIM_ERROR); 609 do_error_dialog(_("Your Yahoo! message did not get sent."), NULL, GAIM_ERROR);
610 } 610 }
611 } 611 }
612 612
1189 1189
1190 static int yahoo_send_im(struct gaim_connection *gc, char *who, char *what, int len, int flags) 1190 static int yahoo_send_im(struct gaim_connection *gc, char *who, char *what, int len, int flags)
1191 { 1191 {
1192 struct yahoo_data *yd = gc->proto_data; 1192 struct yahoo_data *yd = gc->proto_data;
1193 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_MESSAGE, YAHOO_STATUS_OFFLINE, 0); 1193 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_MESSAGE, YAHOO_STATUS_OFFLINE, 0);
1194 char *msg = str_to_utf8(what); 1194 char *msg = g_strdup(what);
1195 1195
1196 yahoo_packet_hash(pkt, 1, gc->displayname); 1196 yahoo_packet_hash(pkt, 1, gc->displayname);
1197 yahoo_packet_hash(pkt, 5, who); 1197 yahoo_packet_hash(pkt, 5, who);
1198 yahoo_packet_hash(pkt, 14, msg); 1198 yahoo_packet_hash(pkt, 14, msg);
1199 1199