comparison libpurple/protocols/oscar/family_icbm.c @ 27803:8dfe3a985fc1

replaced deprecated UCS-2BE with UTF-16BE
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 19 Mar 2008 19:16:07 +0000
parents 9cd7892b2c8b
children 80d3f4ff1cae
comparison
equal deleted inserted replaced
27802:4d8e1c17b3f9 27803:8dfe3a985fc1
534 534
535 aim_tlvlist_add_16(&inner_tlvlist, 0x000a, 0x0001); 535 aim_tlvlist_add_16(&inner_tlvlist, 0x000a, 0x0001);
536 aim_tlvlist_add_raw(&inner_tlvlist, 0x000d, 11, (guint8 *)"unicode-2-0"); 536 aim_tlvlist_add_raw(&inner_tlvlist, 0x000d, 11, (guint8 *)"unicode-2-0");
537 aim_tlvlist_add_noval(&inner_tlvlist, 0x000f); 537 aim_tlvlist_add_noval(&inner_tlvlist, 0x000f);
538 //yaz 538 //yaz
539 ucs = g_convert(msg, strlen(msg), "UCS-2BE", "UTF-8", NULL, &bytes, NULL); 539 ucs = g_convert(msg, strlen(msg), "UTF-16BE", "UTF-8", NULL, &bytes, NULL);
540 if(ucs){ 540 if(ucs){
541 botch_ucs(ucs, bytes); 541 botch_ucs(ucs, bytes);
542 aim_tlvlist_add_raw(&inner_tlvlist, 0x000c, bytes, (guint8 *)ucs); 542 aim_tlvlist_add_raw(&inner_tlvlist, 0x000c, bytes, (guint8 *)ucs);
543 free(ucs); 543 free(ucs);
544 } 544 }