oc: warning if codepage not found from headerCharset

This commit is contained in:
Jesús García Sáez 2015-01-15 13:50:26 +01:00
parent d052356724
commit 7e7d302165

View file

@ -940,7 +940,11 @@ _compareBodyKeysByPriority (id entry1, id entry2, void *data)
codepage = [Codepages getCodepageFromName: headerCharset];
if (!codepage)
{
[self warnWithFormat: @"Couldn't find codepage from `%@`. "
@"Using UTF-8 by default", headerCharset];
codepage = [Codepages getCodepageFromName: @"utf-8"];
}
*data = MAPILongValue(memCtx, [codepage intValue]);