Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 10098:fb4216714dac
[gaim-migrate @ 11120]
This is better.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 14 Oct 2004 03:59:00 +0000 |
parents | 158950e7996d |
children | 8490f2e292a6 |
comparison
equal
deleted
inserted
replaced
10097:158950e7996d | 10098:fb4216714dac |
---|---|
496 GError *err = NULL; | 496 GError *err = NULL; |
497 aim_userinfo_t *userinfo = NULL; | 497 aim_userinfo_t *userinfo = NULL; |
498 const gchar *charsetstr; | 498 const gchar *charsetstr; |
499 gsize msglen; | 499 gsize msglen; |
500 | 500 |
501 *charset = oscar_charset_check(from); | |
502 | |
503 /* Attempt to send as ASCII */ | 501 /* Attempt to send as ASCII */ |
504 if (*charset == AIM_CHARSET_ASCII) { | 502 if (oscar_charset_check(from) == AIM_CHARSET_ASCII) { |
505 *msg = g_convert(from, strlen(from), "ASCII", "UTF-8", NULL, &msglen, NULL); | 503 *msg = g_convert(from, strlen(from), "ASCII", "UTF-8", NULL, &msglen, NULL); |
504 *charset = AIM_CHARSET_ASCII; | |
506 *charsubset = 0x0000; | 505 *charsubset = 0x0000; |
507 *msglen_int = msglen; | 506 *msglen_int = msglen; |
508 return; | 507 return; |
509 } | 508 } |
510 | 509 |