Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 10540:b08a37897395
[gaim-migrate @ 11903]
sf patch #1099978, from Magnus Hult
Apparently icq2003b sets your away message the same way AIM does.
This correctly handles some charset conversion.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 24 Jan 2005 23:43:14 +0000 |
parents | 461334f300d7 |
children | 33746d45bd0d |
comparison
equal
deleted
inserted
replaced
10539:5a50946954dd | 10540:b08a37897395 |
---|---|
354 char *begin, *end; | 354 char *begin, *end; |
355 | 355 |
356 g_return_val_if_fail(encoding != NULL, NULL); | 356 g_return_val_if_fail(encoding != NULL, NULL); |
357 | 357 |
358 /* Make sure encoding begins with charset= */ | 358 /* Make sure encoding begins with charset= */ |
359 if (strncmp(encoding, "text/aolrtf; charset=", 21)) | 359 if (strncmp(encoding, "text/aolrtf; charset=", 21) && |
360 strncmp(encoding, "text/x-aolrtf; charset=", 23)) | |
361 { | |
360 return NULL; | 362 return NULL; |
363 } | |
361 | 364 |
362 begin = strchr(encoding, '"'); | 365 begin = strchr(encoding, '"'); |
363 end = strrchr(encoding, '"'); | 366 end = strrchr(encoding, '"'); |
364 | 367 |
365 if ((begin == NULL) || (end == NULL) || (begin >= end)) | 368 if ((begin == NULL) || (end == NULL) || (begin >= end)) |