]> wimlib.net Git - wimlib/blobdiff - src/xml.c
utf8_to_utf16(), utf16_to_utf8() changes
[wimlib] / src / xml.c
index 65e34a2114db281b4f1af4f97fffb73177ec5f3d..9fbe259f76e46ca686e6a1c571c63856637c964c 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -1322,7 +1322,7 @@ int write_xml_data(const struct wim_info *wim_info, int image, FILE *out,
        encoding_handler = xmlGetCharEncodingHandler(XML_CHAR_ENCODING_UTF16LE);
        if (!encoding_handler) {
                ERROR("Failed to get XML character encoding handler for UTF-16LE");
        encoding_handler = xmlGetCharEncodingHandler(XML_CHAR_ENCODING_UTF16LE);
        if (!encoding_handler) {
                ERROR("Failed to get XML character encoding handler for UTF-16LE");
-               ret = WIMLIB_ERR_CHAR_CONVERSION;
+               ret = WIMLIB_ERR_LIBXML_UTF16_HANDLER_NOT_AVAILABLE;
                goto out_cleanup_char_encoding_handlers;
        }
 
                goto out_cleanup_char_encoding_handlers;
        }