Commit 5260ab30 authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

msxml3: Make utf-8 the default encoding.

parent ba4838b0
...@@ -2603,6 +2603,9 @@ static char *xmldoc_encoding(IXMLDOMDocument3 *doc) ...@@ -2603,6 +2603,9 @@ static char *xmldoc_encoding(IXMLDOMDocument3 *doc)
IXMLDOMNode_Release(node); IXMLDOMNode_Release(node);
} }
if (!encoding && (encoding = heap_alloc(sizeof("UTF-8"))))
strcpy(encoding, "UTF-8");
return encoding; return encoding;
} }
......
...@@ -6636,7 +6636,7 @@ static void test_save(void) ...@@ -6636,7 +6636,7 @@ static void test_save(void)
{ {
ReadFile(hfile, buffer, sizeof(buffer), &read, NULL); ReadFile(hfile, buffer, sizeof(buffer), &read, NULL);
ok(read != 0, "could not read file\n"); ok(read != 0, "could not read file\n");
todo_wine ok(!memcmp(buffer, cheA, sizeof(cheA)-1), "got: %s\n", buffer); ok(!memcmp(buffer, cheA, sizeof(cheA)-1), "got: %s\n", buffer);
CloseHandle(hfile); CloseHandle(hfile);
DeleteFileA("test.xml"); DeleteFileA("test.xml");
......
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