Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 63881
Collapse All | Expand All

(-)gaim-0.82.1.orig/src/protocols/oscar/oscar.c (-1 / +6 lines)
Lines 449-455 Link Here
449
			ret = g_strndup(data, datalen);
449
			ret = g_strndup(data, datalen);
450
		} else {
450
		} else {
451
			gaim_debug_warning("oscar", "Received invalid UTF-8.\n");
451
			gaim_debug_warning("oscar", "Received invalid UTF-8.\n");
452
			ret = g_strdup(_("(There was an error receiving this message)"));
452
			charsetstr = gaim_account_get_string(account, "encoding", OSCAR_DEFAULT_CUSTOM_ENCODING);
453
			ret = g_convert(data, datalen, "UTF-8", charsetstr, NULL, NULL, NULL);
454
			if (ret == NULL) {
455
			    gaim_debug_warning("oscar", "Received also invalid %s.\n", charsetstr);
456
			    ret = g_strdup(_("(There was an error receiving this message)"));
457
			}
453
		}
458
		}
454
	}
459
	}
455
460

Return to bug 63881