Mercurial > pidgin.yaz
changeset 7468:4ab8ec97576c
[gaim-migrate @ 8081]
Fixed outgoing mobile pages on MSN.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 10 Nov 2003 19:36:13 +0000 |
parents | f9ed27be344e |
children | 603a58cd23dc |
files | ChangeLog src/protocols/msn/page.c |
diffstat | 2 files changed, 12 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Nov 09 08:49:16 2003 +0000 +++ b/ChangeLog Mon Nov 10 19:36:13 2003 +0000 @@ -8,6 +8,7 @@ * Fixes several Jabber bugs * Fixes the bug where some dialogs would crash when spell checking was enabled. Closes #827930. + * Fixes outgoing mobile pages on MSN. * The border on the close buttons on inactive tabs are no longer shown, thanks to a fix used by Galeon. * Compatible with autoconf 2.58.
--- a/src/protocols/msn/page.c Sun Nov 09 08:49:16 2003 +0000 +++ b/src/protocols/msn/page.c Mon Nov 10 19:36:13 2003 +0000 @@ -37,12 +37,12 @@ if (*(tmp) == '\n') *(tmp)++ /* - * "<TEXT>" == 6 - * "</TEXT>" == 7 - * ---- - * 13 + * <TEXT xml:space="preserve" enc="utf-8"> == 39 + * </TEXT> == 7 + * ---- + * 46 */ -#define MSN_PAGE_BASE_SIZE 13 +#define MSN_PAGE_BASE_SIZE 46 MsnPage * msn_page_new(void) @@ -113,7 +113,7 @@ else { MsnUser *receiver = msn_page_get_receiver(page); - g_snprintf(buf, sizeof(buf), "PAG %d %s %d\r\n", + g_snprintf(buf, sizeof(buf), "PGD %d %s 1 %d\r\n", msn_page_get_transaction_id(page), msn_user_get_passport(receiver), (int)page->size); @@ -127,7 +127,9 @@ page_start = str + strlen(str); - g_snprintf(buf, sizeof(buf), "<TEXT>%s</TEXT>", msn_page_get_body(page)); + g_snprintf(buf, sizeof(buf), + "<TEXT xml:space=\"preserve\" enc=\"utf-8\">%s</TEXT>", + msn_page_get_body(page)); g_strlcat(str, buf, len); @@ -163,7 +165,7 @@ g_return_if_fail(user != NULL); page->sender = user; - + msn_user_ref(page->sender); } @@ -182,7 +184,7 @@ g_return_if_fail(user != NULL); page->receiver = user; - + msn_user_ref(page->receiver); }