oc: warning if codepage not found from headerCharset

pull/69/head
Jesús García Sáez 2015-01-15 13:50:26 +01:00
parent d052356724
commit 7e7d302165
1 changed files with 5 additions and 1 deletions

View File

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