Commit ed8b219c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

inetcomm: Charset name comparison should be case insensitive.

parent 014fb479
......@@ -250,7 +250,7 @@ static HRESULT WINAPI MimeInternat_FindCharset(IMimeInternational *iface, LPCSTR
LIST_FOR_EACH_ENTRY(charset, &This->charsets, charset_entry, entry)
{
if(!strcmp(charset->cs_info.szName, pszCharset))
if(!lstrcmpiA(charset->cs_info.szName, pszCharset))
{
*phCharset = charset->cs_info.hCharset;
hr = S_OK;
......
......@@ -149,6 +149,9 @@ static void test_charset(void)
hr = IMimeInternational_FindCharset(internat, "windows-1252", &hcs);
ok(hr == S_OK, "got %08x\n", hr);
ok(hcs_windows_1252 == hcs, "got different hcharsets for the same name\n");
hr = IMimeInternational_FindCharset(internat, "WiNdoWs-1252", &hcs);
ok(hr == S_OK, "got %08x\n", hr);
ok(hcs_windows_1252 == hcs, "got different hcharsets for the same name\n");
hr = IMimeInternational_FindCharset(internat, "windows-1251", &hcs_windows_1251);
ok(hr == S_OK, "got %08x\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment